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.osc
| 1 | // expect: REDEFINED_NAME object=result line=4 |
| 2 | // transition: parameter named result with ensures |
| 3 | // `result` is reserved in a function that has an ensures clause |
| 4 | fn f(result: u8) -> u8 ensures result >= 0 { |
| 5 | return result; |
| 6 | } |