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

29 lines
429 B
TypeScript
Raw Normal View History

// @target: esnext, es2022, es2015, es5
var a1 = 1;
var a2 = 1;
const b1 = 2;
const b2 = 2;
function f () {
var a1 = 11;
const b1 = 22;
class C1 {
static {
var a1 = 111;
var a2 = 111;
const b1 = 222;
const b2 = 222;
}
}
}
class C2 {
static {
var a1 = 111;
var a2 = 111;
const b1 = 222;
const b2 = 222;
}
}