//// [wrappedAndRecursiveConstraints4.ts]
import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check";
var C = /*#__PURE__*/ function() {
    "use strict";
    function C(x) {
        _class_call_check(this, C);
    }
    var _proto = C.prototype;
    _proto.foo = function foo(x) {
        function bar(x) {
            return x;
        }
        return bar;
    };
    return C;
}();
var c = new C({
    length: 2
});
var r = c.foo('');
var r2 = r({
    length: 3,
    charAt: function charAt(x) {
        '';
    }
}); // error
