1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
extern fn printf(fmt: str, ...): i32 = {}; fn println(value: i32) = { printf("%d\n", value); } fn test(x: i32): i32 = { if (x > 5) return x; return 100; } fn main() = { let x = test(1); println(x); }