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

6 lines
114 B
TypeScript

// @strict: true
// @target: ES2015
const obj: { arr: any[] } = { arr: [] };
for (const i of obj?.arr ?? []) { }