TypeScript/tests/cases/compiler/thisInConstructorParameter2.ts

11 lines
235 B
TypeScript

class P {
x = this;
static y = this;
constructor(public z = this, zz = this, zzz = (p = this) => this) {
zzz = (p = this) => this;
}
foo(zz = this) { zz.x; }
static bar(zz = this) { zz.y; }
}