code wiki / _hdl_build / nx_shadow_probe.nx
nx_shadow_probe.nx
buildroot/runtime/_hdl_build/nx_shadow_probe.nx
about
nx_shadow_probe.nx -- decides NishiLang same-name resolution when a LOCAL func coexists with an
IMPORTED one. Local g_pn prints a marker; if output is SHADOW_LOCAL the local shadows the import
(coexistence is behaviour-safe); if it prints "7" the import wins (coexistence UNSAFE). license_tier: ORIGINAL
dependencies 1 imports · 0 importers
imports: nx_gate_emit_lib.nx
imported by: nobody (leaf or entry point)
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| none |
consts
| none |
functions
| 5 | func g_pn(v: i64) -> i64 { g_puts("SHADOW_LOCAL\n" as *u8); return 0 } |
| 6 | func main() -> i64 { g_pn(7); return 0 } calls 1: g_pn |