mirror of
https://github.com/swc-project/swc.git
synced 2024-12-03 00:54:25 +03:00
20 lines
229 B
TypeScript
20 lines
229 B
TypeScript
// @target: esnext, es2022
|
|
|
|
const a = 1;
|
|
|
|
class C {
|
|
static f1 = 1;
|
|
|
|
static {
|
|
console.log(C.f1, C.f2, C.f3)
|
|
}
|
|
|
|
static f2 = 2;
|
|
|
|
static {
|
|
console.log(C.f1, C.f2, C.f3)
|
|
}
|
|
|
|
static f3 = 3;
|
|
}
|