mirror of
https://github.com/swc-project/swc.git
synced 2024-11-28 11:13:43 +03:00
15 lines
172 B
TypeScript
15 lines
172 B
TypeScript
// @target: esnext, es2022, es2015
|
|
// @useDefineForClassFields: true
|
|
|
|
class C {
|
|
static #x = 123;
|
|
|
|
static {
|
|
console.log(C.#x)
|
|
}
|
|
|
|
foo () {
|
|
return C.#x;
|
|
}
|
|
}
|