swc/crates/swc_ecma_parser/tests/tsc/privateNameStaticAccessorssDerivedClasses.ts
2022-02-04 17:08:38 +09:00

14 lines
264 B
TypeScript

// @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);
}
}