TypeScript/tests/baselines/reference/assertInWrapSomeTypeParameter.js

17 lines
315 B
TypeScript

//// [assertInWrapSomeTypeParameter.ts]
class C<T extends C<T>> {
foo<U extends C<C<T>>(x: U) {
return null;
}
}
//// [assertInWrapSomeTypeParameter.js]
var C = (function () {
function C() {
}
C.prototype.foo = function (x) {
return null;
};
return C;
})();