Files
scriptc/tests/fixtures/strictness/json-any-broken/main.ts
T
2026-07-22 18:08:04 -05:00

9 lines
425 B
TypeScript

/* A GENUINE type error alongside an override-manufactured one. The project
* world (the program without scriptc's divergence overrides) rejects this
* too, so preflight reports ITS errors — the ones reproducible with the
* project's own tsc — and the override-manufactured 'unknown' complaint
* never appears. */
const n: number = "not a number";
const pkg = JSON.parse('{"name":"demo"}');
console.log(pkg.name, n);