mirror of
https://github.com/swc-project/swc.git
synced 2024-12-22 21:21:31 +03:00
15 lines
240 B
TypeScript
15 lines
240 B
TypeScript
// @strict: true
|
|
// @target: es6
|
|
|
|
class A1 {
|
|
#method(param: string): string {
|
|
return "";
|
|
}
|
|
constructor(name: string) {
|
|
this.#method("")
|
|
this.#method(1) // Error
|
|
this.#method() // Error
|
|
|
|
}
|
|
}
|