summaryrefslogtreecommitdiff
path: root/test.toc
diff options
context:
space:
mode:
Diffstat (limited to 'test.toc')
-rw-r--r--test.toc18
1 files changed, 9 insertions, 9 deletions
diff --git a/test.toc b/test.toc
index c88a44c..82603e0 100644
--- a/test.toc
+++ b/test.toc
@@ -45,7 +45,7 @@ putf @= fn(x: float) {
// };
g @= fn() int {
- // foo := new(int, 10);
+ // foo : [10]int; // = new(int, 10);
// each _, i := foo {
// foo[i] = i;
// };
@@ -55,16 +55,16 @@ g @= fn() int {
// }
// total
- // total := 0;
- // each i := 1..10 {
- // total = total + i;
- // total
- // }
total := 0;
- each i, j := 1..10 {
- total = total + i * j;
+ each i := 1..10 {
+ total = total + i;
+ total
}
- total
+ // total := 0;
+ // each i, j := 1..10 {
+ // total = total + i * j;
+ // }
+ // total
};
main @= fn() {