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 / ci_result_in_requires.osc

6 lines · 201 bytes Raw Blame History
1// expect: CONTRACT_INVALID object=result line=4
2// transition: result in requires
3// `result` names the return value; it only exists in ensures
4fn f(x: u8) -> u8 requires result > 0 {
5 return x;
6}