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_in_clause.osc

6 lines · 175 bytes Raw Blame History
1// expect: UNDEFINED_NAME object=y line=3
2// clauses see only the parameters (and result in ensures)
3fn f(x: u8) -> u8 requires x > y {
4 let y: u8 = 1;
5 return x + y;
6}