code wiki / _hdl_build / nx_probe_multierr_live.nx

nx_probe_multierr_live.nx source

↩ module page · 18 lines · 966 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 errors must appear in full 5W+H voice (error at line N: I do not know the name ..., 6// caret, why the build stopped, closest defined name + quoted declaration, fix), then: 7// error: the build found 2 problem(s), listed above, and wrote no program. 8// Kept VALID in-tree (compiler-root probe convention). 9// license_tier: ORIGINAL expect_exit: 0 10import "nx_syscalls.nx" 11func me_one(k: i64) -> i64 { return k + 1 } 12func me_two(k: i64) -> i64 { return k + 2 } 13func main(argc: i64, argv: *i64) -> i64 { 14 let x: i64 = me_one(1) 15 let y: i64 = me_two(2) 16 sys_exit(0) 17 return 0 18}