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_void.osc
| 1 | // expect: CONTRACT_INVALID object=result line=4 |
| 2 | // transition: result in void function |
| 3 | // a void function has no return value to name |
| 4 | fn f(x: u8) ensures result == x { |
| 5 | let y: u8 = x; |
| 6 | } |