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

16 lines
268 B
TypeScript
Raw Normal View History

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