mirror of
https://github.com/swc-project/swc.git
synced 2024-12-18 19:21:33 +03:00
15 lines
229 B
TypeScript
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
|
|
|
|
}
|
|
}
|