mirror of
https://github.com/swc-project/swc.git
synced 2024-12-25 14:43:33 +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;
|
|
}
|
|
}
|