TypeScript/tests/baselines/reference/thisInInstanceMemberInitializer.js
2014-07-12 17:30:19 -07:00

24 lines
349 B
JavaScript

//// [thisInInstanceMemberInitializer.ts]
class C {
x = this;
}
class D<T> {
x = this;
y: T;
}
//// [thisInInstanceMemberInitializer.js]
var C = (function () {
function C() {
this.x = this;
}
return C;
})();
var D = (function () {
function D() {
this.x = this;
}
return D;
})();