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

17 lines
305 B
TypeScript
Raw Normal View History

// https://github.com/microsoft/TypeScript/issues/44872
void class Foo {
static prop = 1
static {
console.log(Foo.prop);
Foo.prop++;
}
static {
console.log(Foo.prop);
Foo.prop++;
}
static {
console.log(Foo.prop);
Foo.prop++;
}
}