omega-mv
Omega: a language for verified programs, semantic identity and machine realization. Seed-born work and existing implementations have distinct provenance.
Brought by drakestapleton
omega-mv / tests / compiler / neg / undefined_recursive.osc
| 1 | // expect: UNDEFINED_NAME object=fact line=5 |
| 2 | // no recursion: a function is defined only after its body. |
| 3 | fn fact(n: i64) -> i64 { |
| 4 | if n <= 1 { return 1; } |
| 5 | return n * fact(n - 1); |
| 6 | } |