mirror of
https://github.com/swc-project/swc.git
synced 2024-12-18 11:11:30 +03:00
13 lines
298 B
TypeScript
13 lines
298 B
TypeScript
class Base {
|
|
constructor(c) { }
|
|
}
|
|
class D extends Base {
|
|
private _t;
|
|
constructor() {
|
|
let x = () => { this._t };
|
|
x(); // no error; we only check super is called before this when the container is a constructor
|
|
this._t; // error
|
|
super(undefined);
|
|
}
|
|
}
|