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

21 lines
286 B
TypeScript

// @target: esnext
// @declaration: true
class C1 {
accessor a: any;
static accessor b: any;
}
declare class C2 {
accessor a: any;
static accessor b: any;
}
function f() {
class C3 {
accessor a: any;
static accessor b: any;
}
return C3;
}