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

16 lines
356 B
TypeScript

// @target: es3, es5
// @declaration: true
// ok to use accessors in ambient class in ES3
declare class C {
static get a(): string;
static set a(value: string);
private static get b(): string;
private static set b(foo: string);
get x(): string;
set x(value: string);
private get y(): string;
private set y(foo: string);
}