Files
scriptc/tests/diagnostics/spread-runtime-optional.ts
Chris Tate 7b007e03ef feat(compiler): bootstrap the LLVM emitter natively
- Run the production LLVM backend natively and reproduce its output across compiler generations.
- Replace unchecked emitter contexts with explicit shared state and callback hosts.
- Preserve NaN in serialized IR and respect optional record storage during spreads.
2026-09-27 22:29:24 -05:00

6 lines
278 B
TypeScript

const values = [{ name: "first", id: 1 }].slice();
// The array callback ABI includes undefined; spreading that arm cannot
// initialize the required fields inferred by TypeScript.
const copies = values.map((value) => ({ ...value, label: "copy" }));
console.log(copies.length);