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

11 lines
194 B
TypeScript

// @target: esnext
// @useDefineForClassFields: true
class B {};
class A extends B {
#x;
constructor() {
void 0; // Error: 'super' call must come first
super();
}
}