omega-harness
Agent skills for operating, encoding and communicating in Omega (.om) and the AIEN repositories
Brought by drakestapleton
omega-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 |