Updated and revised some tests

This commit is contained in:
2026-05-19 11:24:49 +10:00
parent 414a9d6194
commit a0d75b3c70
20 changed files with 49 additions and 54 deletions
+22
View File
@@ -0,0 +1,22 @@
//closures
fn makeCounter() {
var counter: Int = 0;
fn increment() {
return ++counter;
}
return increment;
}
var tally = makeCounter();
while (true) {
var result = tally();
print result;
if (result >= 10) {
break;
}
}