mirror of
https://github.com/swc-project/swc.git
synced 2024-12-22 21:21:31 +03:00
17 lines
313 B
TypeScript
17 lines
313 B
TypeScript
// @strict: true
|
|
// @target: es6
|
|
|
|
class A1 {
|
|
get #prop() { return ""; }
|
|
set #prop(param: string) { }
|
|
|
|
get #roProp() { return ""; }
|
|
|
|
constructor(name: string) {
|
|
this.#prop = "";
|
|
this.#roProp = ""; // Error
|
|
console.log(this.#prop);
|
|
console.log(this.#roProp);
|
|
}
|
|
}
|