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 / ci_result_in_requires.osc
| 1 | // expect: CONTRACT_INVALID object=result line=4 |
| 2 | // transition: result in requires |
| 3 | // `result` names the return value; it only exists in ensures |
| 4 | fn f(x: u8) -> u8 requires result > 0 { |
| 5 | return x; |
| 6 | } |