swc/crates/swc_ecma_parser/tests/tsc/logicalAssignment10.ts
2022-02-04 17:08:38 +09:00

15 lines
196 B
TypeScript

// @target: esnext, es2021, es2020, es2015
var count = 0;
var obj = {};
function incr() {
return ++count;
}
const oobj = {
obj
}
obj[incr()] ??= incr();
oobj["obj"][incr()] ??= incr();