code wiki / _hdl_build / nx_probe_multierr_live.nx

nx_probe_multierr_live.nx source

↩ module page · 17 lines · 829 B

1// nx_probe_multierr_live.nx -- LIVE WITNESS for MULTI-ERROR RECOVERY (2026-08-05). One broken 2// build must report EVERY semantic error it can see, not just the first: rustc/Elm report all, 3// and a compiler that stops at error 1 charges the author one full rebuild per mistake. 4// REPRO: change me_one(1) to me_onex(1) AND me_two(2) to me_twox(2) and /api/build -> 5// BOTH 'call to undefined function' lines must appear (with carets), then: 6// nx_parse: 2 error(s) -- no output emitted 7// Kept VALID in-tree (compiler-root probe convention). 8// license_tier: ORIGINAL expect_exit: 0 9import "nx_syscalls.nx" 10func me_one(k: i64) -> i64 { return k + 1 } 11func me_two(k: i64) -> i64 { return k + 2 } 12func main(argc: i64, argv: *i64) -> i64 { 13 let x: i64 = me_one(1) 14 let y: i64 = me_two(2) 15 sys_exit(0) 16 return 0 17}