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

16 lines
268 B
TypeScript

// @noTypesAndSymbols: true
// @strictNullChecks: true
// @target: esnext
// @useDefineForClassFields: true
class Base {
a = 1;
}
class Derived extends Base {
b = this.a /*undefined*/;
constructor(public a: number) {
super();
}
}