mirror of
https://github.com/swc-project/swc.git
synced 2024-11-28 02:29:04 +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
|
|
|