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

15 lines
281 B
TypeScript
Raw Normal View History

// @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) {}
}