mirror of
https://github.com/swc-project/swc.git
synced 2024-12-21 12:41:54 +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;
|
|
}
|