mirror of
https://github.com/swc-project/swc.git
synced 2024-12-28 08:04:43 +03:00
26 lines
343 B
TypeScript
26 lines
343 B
TypeScript
|
// @target: es2015
|
||
|
|
||
|
class Foo {
|
||
|
#p: number;
|
||
|
|
||
|
constructor(value: number) {
|
||
|
this.#p = value;
|
||
|
}
|
||
|
|
||
|
t1(p: number) {
|
||
|
(this.#p as number) = p;
|
||
|
}
|
||
|
|
||
|
t2(p: number) {
|
||
|
(((this.#p as number))) = p;
|
||
|
}
|
||
|
|
||
|
t3(p: number) {
|
||
|
(this.#p) = p;
|
||
|
}
|
||
|
|
||
|
t4(p: number) {
|
||
|
(((this.#p))) = p;
|
||
|
}
|
||
|
}
|