mirror of
https://github.com/swc-project/swc.git
synced 2024-12-28 08:04:43 +03:00
19 lines
348 B
TypeScript
19 lines
348 B
TypeScript
// @strict: true
|
|
// @target: es6
|
|
|
|
class C {
|
|
#prop = 1;
|
|
static #propStatic = 1;
|
|
|
|
method(other: C) {
|
|
const obj = { ...other };
|
|
obj.#prop;
|
|
const { ...rest } = other;
|
|
rest.#prop;
|
|
|
|
const statics = { ... C};
|
|
statics.#propStatic
|
|
const { ...sRest } = C;
|
|
sRest.#propStatic;
|
|
}
|
|
} |