mirror of
https://github.com/swc-project/swc.git
synced 2024-12-01 09:52:57 +03:00
18 lines
235 B
TypeScript
18 lines
235 B
TypeScript
|
// @noTypesAndSymbols: true
|
||
|
// @strictNullChecks: true
|
||
|
// @target: esnext
|
||
|
// @useDefineForClassFields: true
|
||
|
class Base {
|
||
|
b = 1;
|
||
|
}
|
||
|
|
||
|
class Derived extends Base {
|
||
|
b;
|
||
|
d = this.b;
|
||
|
|
||
|
constructor() {
|
||
|
super();
|
||
|
this.b = 2;
|
||
|
}
|
||
|
}
|