mirror of
https://github.com/swc-project/swc.git
synced 2024-12-21 12:41:54 +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
|
|
|
|
}
|
|
}
|