summaryrefslogtreecommitdiff
path: root/test.toc
diff options
context:
space:
mode:
Diffstat (limited to 'test.toc')
-rw-r--r--test.toc13
1 files changed, 5 insertions, 8 deletions
diff --git a/test.toc b/test.toc
index d82f31e..3906c48 100644
--- a/test.toc
+++ b/test.toc
@@ -8,14 +8,11 @@ puti @= fn(x: int) {
// };
+stuff @= fn(t @ Type) int {
+ 4327834 as t as int
+};
-main @= fn() {
- a, b := f(10, 20);
- c, d := f(10, 10+10);
- puti(a); puti(b);
- puti(c); puti(d);
-f @= fn(a: int, x @ int) (int, int) {
- x * a, x + a
-};
+main @= fn() {
+ puti(stuff(int));
};