TypeScript/tests/cases/compiler/validUseOfThisInSuper.ts
2014-07-12 17:30:19 -07:00

9 lines
306 B
TypeScript

class Base {
constructor(public b: Base) {
}
}
class Super extends Base {
constructor() {
super((() => this)()); // ok since this is not the case: The constructor declares parameter properties or the containing class declares instance member variables with initializers.
}
}