summaryrefslogtreecommitdiff
path: root/test.toc
diff options
context:
space:
mode:
Diffstat (limited to 'test.toc')
-rw-r--r--test.toc15
1 files changed, 15 insertions, 0 deletions
diff --git a/test.toc b/test.toc
index 87e4e47..a1b29af 100644
--- a/test.toc
+++ b/test.toc
@@ -23,7 +23,22 @@ f @= fn() int {
a + b + c
};
+aSDF @= fn() [3]int {
+ x: [3]int;
+ x[0] = 1;
+ x[1] = 2;
+ x[2] = 3;
+ x
+};
+
main @= fn() {
puti(f());
A : [f()]int;
+ x @= f();
+ dsafsad @= ptriple;
+ foo @= aSDF();
+ puti(foo[0]);
+ puti(foo[1]);
+ puti(foo[2]);
+ // B : [aSDF()[0]]int;
};