mirror of
https://github.com/swc-project/swc.git
synced 2024-12-18 11:11:30 +03:00
14 lines
291 B
TypeScript
14 lines
291 B
TypeScript
// @target: es2015
|
|
|
|
const C = class D {
|
|
static #field = D.#method();
|
|
static #method() { return 42; }
|
|
static getClass() { return D; }
|
|
static getField() { return C.#field };
|
|
}
|
|
|
|
console.log(C.getClass().getField());
|
|
C.getClass().#method; // Error
|
|
C.getClass().#field; // Error
|
|
|