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

10 lines
153 B
TypeScript

let x: { o: boolean } = { o: false }
if (x['o'] === false) {
x['o'] = true
}
const y: [number, number] = [0, 0];
if (y[0] === 0) {
y[0] = -1;
}