mirror of
https://github.com/swc-project/swc.git
synced 2024-12-19 19:52:21 +03:00
23 lines
398 B
TypeScript
23 lines
398 B
TypeScript
// @target: esnext, es2022
|
|
// @useDefineForClassFields: false
|
|
|
|
class C {
|
|
a = 123;
|
|
#a = 10;
|
|
c = "hello";
|
|
#b;
|
|
method() {
|
|
console.log(this.#a);
|
|
this.#a = "hello";
|
|
console.log(this.#b);
|
|
}
|
|
static #m = "test";
|
|
static #x;
|
|
static test() {
|
|
console.log(this.#m);
|
|
console.log(this.#x = "test");
|
|
}
|
|
#something = () => 1234;
|
|
}
|
|
|