Nesting index multiplication assignment fixed

This affects all arithmetic types applied to inner-nested compounds.
This commit is contained in:
2023-02-05 06:28:18 +00:00
parent 386201b6e9
commit 7b26527e95
3 changed files with 12 additions and 7 deletions

View File

@@ -71,6 +71,14 @@
assert a[0][0] == [42], "nested indexing failed";
}
//test nested indexing multipliciation assignment
{
var a = [[1, 2, 3], [4, 5, 6], [7, 8, 9]];
a[1][1] *= 10;
assert a == [[1, 2, 3], [4, 50, 6], [7, 8, 9]], "nested indexing multipliciation assignment failed";
}
//test combine example
{