aienos.com
Source of www.aienos.com, served from my own hardware
Brought by drakestapleton
aienos.com / om / omega-reference / vendor / 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 |