Fixed an obscure compiler bug involving assignments and indexing, read more

TOY_OP_INDEX_ASSIGN_INTERMEDIATE was being used when it shouldn't have.

Now the check runs down the whole binary->right branch to ensure the given
node doesn't exist in that tree.
This commit is contained in:
2023-06-15 12:29:25 +10:00
parent 1481216e69
commit 2157b2f540
3 changed files with 88 additions and 1 deletions

View File

@@ -121,6 +121,7 @@ int main() {
"functions.toy",
"index-arrays.toy",
"index-assignment-both-bugfix.toy",
"index-assignment-intermediate-bugfix.toy",
"index-assignment-left-bugfix.toy",
"index-dictionaries.toy",
"index-strings.toy",