mirror of
https://github.com/swc-project/swc.git
synced 2024-12-18 11:11:30 +03:00
b887b30092
**Description:** This is required for https://github.com/swc-project/swc/pull/6981 and https://github.com/swc-project/swc/pull/6950
19 lines
280 B
TypeScript
19 lines
280 B
TypeScript
// @target: esnext, es2022, es2015
|
|
|
|
class C1 {
|
|
accessor #a: any;
|
|
accessor #b = 1;
|
|
static accessor #c: any;
|
|
static accessor #d = 2;
|
|
|
|
constructor() {
|
|
this.#a = 3;
|
|
this.#b = 4;
|
|
}
|
|
|
|
static {
|
|
this.#c = 5;
|
|
this.#d = 6;
|
|
}
|
|
}
|