code wiki / (root) / nx_probe_voice_live.nx

nx_probe_voice_live.nx source

↩ module page · 17 lines · 907 B

1// nx_probe_voice_live.nx -- MUST-REFUSE WITNESS (5W+H voice conversion, 2026-08-13): 2// the three highest-frequency AUTHORING mistakes -- call arity, reassigning a 'let', and a 3// duplicate definition -- used to speak the organ-prefixed jargon voice ("nx_parse: call arity 4// mismatch: ..."). All three now say WHAT happened, WHY the build stopped, and HOW to fix it, 5// and all three are reported in ONE compile (multi-error recovery). 6// These are USER ERRORS, not capability limits, so they carry NO capability= slug -- that 7// distinction is what keeps the demand journal an honest signal of missing capability. 8// EXPECT: COMPILE-FAIL, 3 error(s), 0 capability= slugs. 9func vp_two(a: i64, b: i64) -> i64 { return a + b } 10func vp_dup(k: i64) -> i64 { return k } 11func vp_dup(k: i64) -> i64 { return k + 1 } 12 13func main(argc: i64, argv: *u8) -> i64 { 14 let fixed: i64 = 1 15 fixed = 2 16 return vp_two(7) 17}