code wiki / _hdl_build / nx_probe_arity_live.nx
nx_probe_arity_live.nx source
↩ module page · 13 lines · 689 B
1// nx_probe_arity_live.nx -- LIVE WITNESS for the in-compiler call-arity check (radar evidence 2026-08-05).
2// REPRO RECIPE: change the pa_two call below to `pa_two(1)` (drop an argument) and /api/build this target:
3// the build MUST FAIL with `nx_parse: call arity mismatch`. This file is kept VALID in-tree so corpus
4// builds never break (the compiler-root probe convention); the witness is the EDIT+BUILD cycle, run
5// 2026-08-05 for the /compare/lang radar cell.
6// license_tier: ORIGINAL expect_exit: 0
7import "nx_syscalls.nx"
8func pa_two(a: i64, b: i64) -> i64 { return a + b }
9func main(argc: i64, argv: *i64) -> i64 {
10 let x: i64 = pa_two(1, 2)
11 sys_exit(0)
12 return 0
13}