Removed extra scope around for loop body blocks, resolved #107

This commit is contained in:
2023-08-22 01:11:32 +10:00
parent 7290efe069
commit db52c13613
4 changed files with 17 additions and 18 deletions

View File

@@ -1,12 +1,3 @@
import standard;
var array = [42];
var result = null;
//problematic line
result = max(0, array[0]);
assert result == 42, "Indexing in argument list failed";
print "All good";
for (var i: int = 0; i < 10; i++) print i;