9 lines
No EOL
306 B
TypeScript
9 lines
No EOL
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.
|
|
}
|
|
} |