Fixed indexing in argument lists, resolved #102

This commit is contained in:
2023-08-09 02:25:07 +10:00
parent 401de578a5
commit 62fe86f99b
4 changed files with 32 additions and 12 deletions

View File

@@ -1,13 +1,12 @@
fn doA() {
print "doA()";
return true;
}
import standard;
var array = [42];
fn doB() {
print "doB()";
return true;
}
var result = null;
if (doA() || doB()) {
print "success";
}
//problematic line
result = max(0, array[0]);
assert result == 42, "Indexing in argument list failed";
print "All good";