mirror of
https://github.com/swc-project/swc.git
synced 2024-12-20 20:22:26 +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;
|
|
}
|
|
}
|