//// [genericCallWithObjectTypeArgsAndConstraints5.ts]
import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check";
// Generic call with constraints infering type parameter from object member properties
var C = function C() {
    "use strict";
    _class_call_check(this, C);
};
var D = function D() {
    "use strict";
    _class_call_check(this, D);
};
function foo(t, t2) {
    return function(x) {
        return t2;
    };
}
var c;
var d;
var r2 = foo(d, c); // the constraints are self-referencing, no downstream error
var r9 = foo(function() {
    return 1;
}, function() {}); // the constraints are self-referencing, no downstream error
function other() {
    var r5 = foo(c, d); // error
}
