swc/crates/swc_ecma_parser/tests/tsc/superCallBeforeThisAccessing2.ts

10 lines
213 B
TypeScript

class Base {
constructor(c) { }
}
class D extends Base {
private _t;
constructor() {
super(() => { this._t }); // no error. only check when this is directly accessing in constructor
}
}