summaryrefslogtreecommitdiff
path: root/test.toc
diff options
context:
space:
mode:
Diffstat (limited to 'test.toc')
-rw-r--r--test.toc9
1 files changed, 4 insertions, 5 deletions
diff --git a/test.toc b/test.toc
index d37489e..da377c8 100644
--- a/test.toc
+++ b/test.toc
@@ -1,10 +1,9 @@
#include "std/io.toc";
-f ::= fn(x :: ..) Type {
- [#sizeof(x[0])]x[1]
+f ::= fn(x : ..) int {
+ x[0] + x[1]
};
main ::= fn() {
- x: f(int,u8);
-};
-main(); \ No newline at end of file
+ puti(f(1,2));
+}; \ No newline at end of file