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

14 lines
264 B
TypeScript

//// [thisInConstructorParameter1.ts]
class Foo {
public y;
constructor(x = this.y) { }
}
//// [thisInConstructorParameter1.js]
var Foo = (function () {
function Foo(x) {
if (x === void 0) { x = this.y; }
}
return Foo;
})();