code wiki / (root) / nx_arity_witness_under.nx

nx_arity_witness_under.nx source

↩ module page · 8 lines · 260 B

1// witness: call a DEFINED 2-arg function with 0 args -- compile? what does it read? 2import "nx_syscalls.nx" 3func twoarg(a: i64, b: i64) -> i64 { return a + b } 4func main(argc: i64, argv: *i64) -> i64 { 5 let r: i64 = twoarg() 6 sys_exit(0) 7 return 0 8}