Fix && and || associativity.

Somehow, these have always been right-associative, when the natural thing to expect is left-associativity. It now matters when trying to crawl down binary tree to display them properly.
This commit is contained in:
KtorZ
2024-03-07 00:02:35 +01:00
parent c9ab1aec98
commit 8ffa68d2f0
3 changed files with 51 additions and 20 deletions

View File

@@ -11,6 +11,5 @@ fn bar() {
}
fn baz() {
a || b && c || d
a || ( b && c || d )
}