summaryrefslogtreecommitdiff
path: root/tests/varargs.toc
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2020-06-21 17:47:55 -0400
committerLeo Tenenbaum <pommicket@gmail.com>2020-06-21 17:47:55 -0400
commit692d13cc1a6fda2776d0ad0b34e9fbff0bc2c55c (patch)
treecf14f8fc4c531a08512050b5bd4f9b3d01b87ad8 /tests/varargs.toc
parenta03de99b63cd76edd191de05d85147518842cafc (diff)
everything now working with blocks not returning values
Diffstat (limited to 'tests/varargs.toc')
-rw-r--r--tests/varargs.toc4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/varargs.toc b/tests/varargs.toc
index 0885da4..ff315c6 100644
--- a/tests/varargs.toc
+++ b/tests/varargs.toc
@@ -9,7 +9,7 @@ sum ::= fn(x: ..) int {
for a, i := x {
total += a + i - i + 1;
}
- total - x.len
+ return total - x.len;
};
sumc ::= fn(x:: ..) int {
@@ -17,7 +17,7 @@ sumc ::= fn(x:: ..) int {
for a, i := x {
total += a + i - i + 1;
}
- total - x.len
+ return total - x.len;
};
do_printing ::= fn(x::..) {