swc/crates/swc_ecma_parser/tests/tsc/classStaticBlock3.ts

20 lines
229 B
TypeScript
Raw Normal View History

// @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;
}