mirror of
https://github.com/swc-project/swc.git
synced 2024-12-26 23:27:56 +03:00
31 lines
427 B
TypeScript
31 lines
427 B
TypeScript
// @strict: true
|
|
|
|
declare const obj: any;
|
|
|
|
obj?.a++;
|
|
obj?.a.b++;
|
|
obj?.a--;
|
|
obj?.a.b--;
|
|
|
|
++obj?.a;
|
|
++obj?.a.b;
|
|
--obj?.a;
|
|
--obj?.a.b;
|
|
|
|
obj?.a = 1;
|
|
obj?.a.b = 1;
|
|
obj?.a += 1;
|
|
obj?.a.b += 1;
|
|
|
|
for (obj?.a in {});
|
|
for (obj?.a.b in {});
|
|
for (obj?.a of []);
|
|
for (obj?.a.b of []);
|
|
|
|
({ a: obj?.a } = { a: 1 });
|
|
({ a: obj?.a.b } = { a: 1 });
|
|
({ ...obj?.a } = { a: 1 });
|
|
({ ...obj?.a.b } = { a: 1 });
|
|
[...obj?.a] = [];
|
|
[...obj?.a.b] = [];
|