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 / rd_result_param_void.osc
| 1 | // expect: REDEFINED_NAME object=result line=4 |
| 2 | // transition: parameter named result with ensures |
| 3 | // the reservation holds in a void function too (OSC-2-DESIGN 1.3) |
| 4 | fn f(result: u8) ensures result == 1 { |
| 5 | let y: u8 = result; |
| 6 | } |