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

11 lines
131 B
TypeScript

// @target: es2015
const C = class {
set #x(x) {}
m() {
this.#x += 2; // Error
}
}
console.log(new C().m());