summaryrefslogtreecommitdiff
path: root/test.toc
diff options
context:
space:
mode:
Diffstat (limited to 'test.toc')
-rw-r--r--test.toc14
1 files changed, 9 insertions, 5 deletions
diff --git a/test.toc b/test.toc
index c6627a2..cb0b448 100644
--- a/test.toc
+++ b/test.toc
@@ -1,11 +1,15 @@
#include "std/io.toc";
main ::= fn() {
- a : [5]int;
- for x, i := &a {
- *x = i;
+ a : [5][]char;
+ for x, i : (&[]char, u8) = &a {
+ *x = "foo";
}
- for y := a {
- puti(y);
+ for y : []char = a {
+ puts(y);
+ }
+ for x, i := a {
+ puti(i);
+ puts(x);
}
}