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

18 lines
234 B
TypeScript

// @strict: true
// @target: es6
class A {
#foo: number;
constructor () {
this.#foo = 3;
}
}
class B extends A {
#foo: string;
constructor () {
super();
this.#foo = "some string";
}
}