diff options
author | Ori Bernstein <ori@eigenstate.org> | 2013-12-16 16:48:38 -0500 |
---|---|---|
committer | Ori Bernstein <ori@eigenstate.org> | 2013-12-16 16:48:38 -0500 |
commit | 6db6735df5f0e8d44c591c0ff8130c47f94c5d37 (patch) | |
tree | 0f0109e5d1d57918f4d679a2062a19965605916a /test/arityhigh.myr | |
parent | 10b54e590ef8bfd54c5dc9712d0864db4be4e1ce (diff) | |
download | mc-6db6735df5f0e8d44c591c0ff8130c47f94c5d37.tar.gz |
Convert main() to effectively return void.
Now, if we exit thorugh the end of main, we will ignore
the return value, and call exit(0) from the start stub.
If you want to exit with a different return value, you need
to call std.exit(val)
Diffstat (limited to 'test/arityhigh.myr')
-rw-r--r-- | test/arityhigh.myr | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/arityhigh.myr b/test/arityhigh.myr index 3cc4da1..35bbcb2 100644 --- a/test/arityhigh.myr +++ b/test/arityhigh.myr @@ -1,9 +1,9 @@ use std /* should fail because we call f with too many args */ const f = {a:int - + -> a } const main = { - -> f(1, 2, 3) + std.exit(f(1, 2, 3)) } |