17 lines
315 B
JavaScript
17 lines
315 B
JavaScript
|
//// [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;
|
||
|
})();
|