Files
scriptc/tests/diagnostics/json-shape/main.ts
T
Malte UblandClaude Opus 5.5 fe322ae901 Keep the JSON-shape diagnostics fixture refused now that null fields bake
A null-valued JSON field bakes as null, so the fixture's document now
compiles. It keeps its purpose with a value no literal spells (1e400 parses
to Infinity), and the mixed-table corpus program covers null elements.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-19 21:16:25 -07:00

8 lines
325 B
TypeScript

/* A JSON document whose value doesn't bake: `1e400` parses to Infinity,
* which no number literal spells, so the import reports the bake failure
* at the import site and uses of the binding poison. (Its null-valued
* field bakes as null.) */
import bad from "./nulled.json" with { type: "json" };
console.log(bad.name);