swc/crates/swc_ecma_parser/tests/tsc/logicalAssignment10.ts

15 lines
188 B
TypeScript

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