swc/crates/swc_ecma_parser/tests/tsc/redeclaredProperty.ts

18 lines
235 B
TypeScript
Raw Normal View History

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