summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2015-12-14 23:47:17 -0800
committerOri Bernstein <ori@eigenstate.org>2015-12-14 23:47:17 -0800
commit2b4787aec89f8d1dcd75c3dc022a8a137c5f5178 (patch)
tree133a9c3d918aa321dd014a5c612538d38302414c /test
parentf5a1454387098fa3abb7bf95f4123e1fac85cb7d (diff)
downloadmc-2b4787aec89f8d1dcd75c3dc022a8a137c5f5178.tar.gz
Fix void arguments in argument lists.
'void' isn't a bloody integer.
Diffstat (limited to 'test')
-rw-r--r--test/voidarg.myr12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/voidarg.myr b/test/voidarg.myr
new file mode 100644
index 0000000..1c4e7c5
--- /dev/null
+++ b/test/voidarg.myr
@@ -0,0 +1,12 @@
+use std
+
+const main = {
+ var x : void
+
+
+ std.put("{}\n", f(x, 1, void, 2))
+}
+
+const f = {v1, n1, v2, n2
+ -> n1 + n2
+}