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

17 lines
287 B
TypeScript
Raw Normal View History

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