mirror of
https://github.com/swc-project/swc.git
synced 2024-12-20 04:01:39 +03:00
13 lines
198 B
TypeScript
13 lines
198 B
TypeScript
|
// @strict: true
|
||
|
// @target: es6
|
||
|
|
||
|
class C {
|
||
|
#prop = 1;
|
||
|
|
||
|
method(other: C) {
|
||
|
const obj = { ...other };
|
||
|
obj.#prop;
|
||
|
const { ...rest } = other;
|
||
|
rest.#prop;
|
||
|
}
|
||
|
}
|