code wiki / _hdl_build / nx_probe_dym_ident_live.nx
nx_probe_dym_ident_live.nx source
↩ module page · 18 lines · 948 B
1// nx_probe_dym_ident_live.nx -- LIVE WITNESS for IDENTIFIER DID-YOU-MEAN (2026-08-05).
2// A misspelled LOCAL must be refused with a line, the nearest defined name, and a caret --
3// the rustc/Elm move, extended from calls (nx_probe_dym_live.nx) to bare identifiers.
4// REPRO: change `counter + 1` to `countr + 1` and /api/build ->
5// nx_parse: line N: UNRESOLVED identifier 'countr' in fn main -- not a local/param, const,
6// string const, or function -- did you mean 'counter'? (then the source line + caret, then:
7// note: 'counter' is declared at line M: (the declaration ITSELF is quoted -- v2 bar)
8// let counter: i64 = 41
9// then: nx_parse: 1 error(s) -- no output emitted)
10// Kept VALID in-tree (compiler-root probe convention).
11// license_tier: ORIGINAL expect_exit: 0
12import "nx_syscalls.nx"
13func main(argc: i64, argv: *i64) -> i64 {
14 let counter: i64 = 41
15 let r: i64 = counter + 1
16 sys_exit(0)
17 return r
18}