summaryrefslogtreecommitdiff
path: root/test.toc
diff options
context:
space:
mode:
Diffstat (limited to 'test.toc')
-rw-r--r--test.toc9
1 files changed, 8 insertions, 1 deletions
diff --git a/test.toc b/test.toc
index 8e52b1b..dda957a 100644
--- a/test.toc
+++ b/test.toc
@@ -22,15 +22,22 @@ puti @= fn(x: int) {
// f.z += 43.2;
// };
-f @= fn(x @ int) i: int {
+f @= fn(x @ int = 3+5) i: int {
i = x;
};
+g @= fn(x, y : (int, int) = (3+5, 4+9)) i: int {
+ i = x + y;
+};
+
main @= fn() {
puti(f(313));
puti(f(128));
puti(f(231));
puti(f(100+213));
+ puti(f());
+ puti(g());
+
};
// b := bar();