mirror of
https://github.com/swc-project/swc.git
synced 2024-11-24 10:12:42 +03:00
15 lines
281 B
TypeScript
15 lines
281 B
TypeScript
|
// @target: es5, es3
|
||
|
|
||
|
class A {
|
||
|
constructor() {}
|
||
|
#field = 123;
|
||
|
#method() {}
|
||
|
static #sField = "hello world";
|
||
|
static #sMethod() {}
|
||
|
get #acc() { return ""; }
|
||
|
set #acc(x: string) {}
|
||
|
static get #sAcc() { return 0; }
|
||
|
static set #sAcc(x: number) {}
|
||
|
}
|
||
|
|