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

6 lines · 190 bytes Raw Blame History
1// expect: CONTRACT_INVALID object=result line=4
2// transition: result in void function
3// a void function has no return value to name
4fn f(x: u8) ensures result == x {
5 let y: u8 = x;
6}