swc/crates/swc_ecma_parser/tests/tsc/privateNameES5Ban.ts
2022-02-04 17:08:38 +09:00

15 lines
281 B
TypeScript

// @target: es5, es3
class A {
constructor() {}
#field = 123;
#method() {}
static #sField = "hello world";
static #sMethod() {}
get #acc() { return ""; }
set #acc(x: string) {}
static get #sAcc() { return 0; }
static set #sAcc(x: number) {}
}