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 / si / harness / examples / err18_missing_ret.om
| 1 | note err18_missing_ret: a function with a result type whose end is reachable |
| 2 | fn f x int to int |
| 3 | if gt x 0 |
| 4 | ret 1 |
| 5 | end |
| 6 | end |
| 7 | fn main to int |
| 8 | ret f 1 |
| 9 | end |