Files
scriptc/tests/diagnostics/json-shape/main.ts
2026-07-22 18:08:04 -05:00

8 lines
346 B
TypeScript

/* A JSON document whose shape doesn't bake: a null-valued field has no
* standalone STATIC type, so the import reports the dynamic-family type
* diagnostic (SC2011 at the import site — the shape maps in the embedded
* engine) and uses of the binding poison. */
import bad from "./nulled.json" with { type: "json" };
console.log(bad.name);