mirror of
https://github.com/swc-project/swc.git
synced 2024-12-22 21:21:31 +03:00
14 lines
264 B
TypeScript
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);
|
|
}
|
|
}
|