mirror of
https://github.com/krgamestudios/Toy.git
synced 2026-04-17 15:54:07 +10:00
Fixed nested assignment bug
This commit is contained in:
@@ -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);
|
||||
Reference in New Issue
Block a user