code wiki / _hdl_build / nx_probe_dym_live.nx
nx_probe_dym_live.nx source
↩ module page · 17 lines · 869 B
1// nx_probe_dym_live.nx -- LIVE WITNESS for DID-YOU-MEAN (2026-08-05). A misspelled call must be
2// refused WITH the nearest defined name, rustc/Elm-style, and with a line number (our own bar:
3// a check that cannot say WHERE is a worse check).
4// REPRO: change dym_helper(1) to dym_helpr(1) and /api/build ->
5// nx_parse: line N: call to undefined function 'dym_helpr' -- did you mean 'dym_helper'?
6// (source line + caret, then the DECLARATION ITSELF, quoted -- v2 bar, no shorthand:)
7// note: 'dym_helper' is declared at line M:
8// func dym_helper(k: i64) -> i64 { return k + 1 }
9// Kept VALID in-tree (compiler-root probe convention).
10// license_tier: ORIGINAL expect_exit: 0
11import "nx_syscalls.nx"
12func dym_helper(k: i64) -> i64 { return k + 1 }
13func main(argc: i64, argv: *i64) -> i64 {
14 let x: i64 = dym_helper(1)
15 sys_exit(0)
16 return 0
17}