mirror of
https://github.com/swc-project/swc.git
synced 2024-12-27 15:42:51 +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);
|
|
}
|
|
}
|