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

30 lines
419 B
TypeScript

// @target: es2022
class C1 {
accessor a0 = 1;
}
class C2 {
#a1_accessor_storage = 1;
accessor a1 = 2;
}
class C3 {
static #a2_accessor_storage = 1;
static {
class C3_Inner {
accessor a2 = 2;
static {
#a2_accessor_storage in C3;
}
}
}
}
class C4_1 {
static accessor a3 = 1;
}
class C4_2 {
static accessor a3 = 1;
}