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

17 lines
327 B
TypeScript

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