summaryrefslogtreecommitdiff
path: root/test.toc
diff options
context:
space:
mode:
Diffstat (limited to 'test.toc')
-rw-r--r--test.toc8
1 files changed, 4 insertions, 4 deletions
diff --git a/test.toc b/test.toc
index a925583..155b62b 100644
--- a/test.toc
+++ b/test.toc
@@ -1,10 +1,10 @@
main @= fn() {
foo @= fn() i64 { return 3; };
- test @= fn(x : i64, y : i32, z,w: i64) ret1 : i64, ret2 : i64 {
- ret1 = x;
+ test @= fn(x : i64, y : i32, z,w : f32 = 18, foo := false) ret1 : i64, ret2 : i64 {
+ ret1 = x + (z + w as i64);
};
a,b : i64;
- a, b = test(3,7,2,3);
- a, b = test(x = 3, z = 7, w = 30, y = 20);
+ a, b = test(3,7,2, foo = true);
+ a, b = test(x = 3, y = 30);
};