interplane.Get Omega
Read in your language

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

branch main Branches Tags History

omega-mv / tests / compiler / neg / undefined_recursive.osc

6 lines · 188 bytes Raw Blame History
1// expect: UNDEFINED_NAME object=fact line=5
2// no recursion: a function is defined only after its body.
3fn fact(n: i64) -> i64 {
4 if n <= 1 { return 1; }
5 return n * fact(n - 1);
6}