summaryrefslogtreecommitdiff
path: root/test.toc
diff options
context:
space:
mode:
Diffstat (limited to 'test.toc')
-rw-r--r--test.toc7
1 files changed, 4 insertions, 3 deletions
diff --git a/test.toc b/test.toc
index 846011e..4f7056e 100644
--- a/test.toc
+++ b/test.toc
@@ -1,5 +1,9 @@
main @= fn() {
bar : [3]fn();
+ foo := fn() {};
+ bar[1] = foo;
+ bar[2] = foo;
+ bar[0] = foo;
i := 0;
x := bar[i];
x();
@@ -9,7 +13,4 @@ main @= fn() {
i = i + 1;
x = bar[i];
x();
- i = i + 1;
- x = bar[i];
- x();
};