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

14 lines
264 B
TypeScript
Raw Normal View History

// @target: es2015
class Base {
static get #prop(): number { return 123; }
static method(x: typeof Derived) {
console.log(x.#prop);
}
}
class Derived extends Base {
static method(x: typeof Derived) {
console.log(x.#prop);
}
}