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

17 lines
287 B
TypeScript

// @target: es2015
class Base {
#x;
constructor() {
class Derived {
#x;
testBase(x: Base) {
console.log(x.#x);
}
testDerived(x: Derived) {
console.log(x.#x);
}
}
}
}