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 / missing_return.osc
| 1 | // expect: MISSING_RETURN object=f line=7 |
| 2 | // a non-void function can fall off its end. |
| 3 | fn f(x: i32) -> i32 { |
| 4 | if x > 0 { |
| 5 | return 1; |
| 6 | } |
| 7 | } |