Fixed nested assignment bug

This commit is contained in:
2022-09-09 17:55:23 +01:00
parent f8747d8707
commit 4b99ce2fb6
7 changed files with 192 additions and 97 deletions

View File

@@ -1,10 +1,11 @@
//test nested indexing
{
var a = [[[0]]];
fn loop(count) {
print count++;
loop(count);
a[0][0][0] = 42;
print a;
assert a[0][0] == [42], "nested indexing failed";
}
loop(0);