Assignments evaluate right-hand-side first

This commit is contained in:
Arthur Baars
2020-11-26 16:40:14 +01:00
parent 465c266b8a
commit 97fab0d18b
2 changed files with 8 additions and 8 deletions

View File

@@ -240,9 +240,9 @@ private module Trees {
private class AssignmentTree extends StandardPostOrderTree, Assignment {
final override AstNode getChildNode(int i) {
result = this.getLeft() and i = 0
result = this.getRight() and i = 0
or
result = this.getRight() and i = 1
result = this.getLeft() and i = 1
}
}