mirror of
https://github.com/swc-project/swc.git
synced 2024-11-24 10:12:42 +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;
|
|
}
|
|
}
|