diff options
author | Leo Tenenbaum <pommicket@gmail.com> | 2020-03-12 14:51:12 -0400 |
---|---|---|
committer | Leo Tenenbaum <pommicket@gmail.com> | 2020-03-12 14:51:12 -0400 |
commit | 62171110eaf3dce74fe4023f7a1d766f7b6d0745 (patch) | |
tree | 93a364a9ecb09fe094a880580248cb0331f8de0b /test.toc | |
parent | c4cc5ad9f55879be383516ba19a15150b91ba3fb (diff) |
fixed problem with const varargs
Diffstat (limited to 'test.toc')
-rw-r--r-- | test.toc | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) }; |