15 lines
230 B
TypeScript
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;
|
|
}());
|