swc/crates/swc_ecma_parser/tests/tsc/redeclaredProperty.ts
2022-02-04 17:08:38 +09:00

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;
}
}