summaryrefslogtreecommitdiff
path: root/test.toc
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2020-03-12 14:51:12 -0400
committerLeo Tenenbaum <pommicket@gmail.com>2020-03-12 14:51:12 -0400
commit62171110eaf3dce74fe4023f7a1d766f7b6d0745 (patch)
tree93a364a9ecb09fe094a880580248cb0331f8de0b /test.toc
parentc4cc5ad9f55879be383516ba19a15150b91ba3fb (diff)
fixed problem with const varargs
Diffstat (limited to 'test.toc')
-rw-r--r--test.toc4
1 files changed, 2 insertions, 2 deletions
diff --git a/test.toc b/test.toc
index 86d3b9f..3bebaf7 100644
--- a/test.toc
+++ b/test.toc
@@ -1,6 +1,6 @@
#include "std/io.toc";
-g ::= fn(modulator:: int, x : ..) int {
+g ::= fn(modulator:: int, x :: ..) int {
total := 0;
for e := x {
total += modulator * (e as int);
@@ -8,7 +8,7 @@ g ::= fn(modulator:: int, x : ..) int {
total
};
-f ::= fn(x : ..) int {
+f ::= fn(x :: ..) int {
g(2, x)
};