summaryrefslogtreecommitdiff
path: root/test.toc
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2020-03-10 13:10:58 -0400
committerLeo Tenenbaum <pommicket@gmail.com>2020-03-10 13:10:58 -0400
commiteab6760e746527e88d05d507195c78a0197e8be5 (patch)
treeefcf77fc87dcaac4163d1bce88ecf3bdbc090738 /test.toc
parentf7375a3534eeab4200ec8ed15b4d9acca5e1913f (diff)
const varargs working
Diffstat (limited to 'test.toc')
-rw-r--r--test.toc11
1 files changed, 6 insertions, 5 deletions
diff --git a/test.toc b/test.toc
index 0004af0..d37489e 100644
--- a/test.toc
+++ b/test.toc
@@ -1,9 +1,10 @@
-// #include "std/io.toc";
+#include "std/io.toc";
-f ::= fn(x :: ..) int {
- x[0]
+f ::= fn(x :: ..) Type {
+ [#sizeof(x[0])]x[1]
};
main ::= fn() {
- f(1,2,3);
-}; \ No newline at end of file
+ x: f(int,u8);
+};
+main(); \ No newline at end of file