mirror of
https://github.com/swc-project/swc.git
synced 2024-12-27 15:42:51 +03:00
31 lines
504 B
TypeScript
31 lines
504 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"]] = [];
|