aienos.com
Source of www.aienos.com, served from my own hardware
Brought by drakestapleton
aienos.com / om / omega-reference / vendor / examples / mistake_value_stmt.om
| 1 | note mistake_value_stmt: a function with a result cannot be a statement; bind its result. Fix: v = f |
| 2 | fn f to int |
| 3 | ret 1 |
| 4 | end |
| 5 | fn main to int |
| 6 | f |
| 7 | ret 0 |
| 8 | end |