TypeScript/tests/baselines/reference/thisTypeAsConstraint.js
2016-01-26 10:16:46 -08:00

15 lines
230 B
TypeScript

//// [thisTypeAsConstraint.ts]
class C {
public m<T extends this>() {
}
}
//// [thisTypeAsConstraint.js]
var C = (function () {
function C() {
}
C.prototype.m = function () {
};
return C;
}());