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

15 lines
229 B
TypeScript

// @strict: true
// @target: es6
class A1 {
static #method(param: string): string {
return "";
}
constructor() {
A1.#method("")
A1.#method(1) // Error
A1.#method() // Error
}
}