Skip to content

Fix assignment RHS operator precedence - #290

Open
WindOctober (WindOctober) wants to merge 1 commit into
Qiskit:mainfrom
WindOctober:fix/assignment-rhs-precedence
Open

WindOctober (WindOctober) wants to merge 1 commit into
Qiskit:mainfrom
WindOctober:fix/assignment-rhs-precedence

Conversation

@WindOctober

Copy link
Copy Markdown

Closes #289

Summary

Fix assignment precedence so binary expressions are parsed as the complete RHS. For example, a = b ^ c is now parsed as a = (b ^ c).

Regression tests and affected snapshots are updated.

Testing

cargo test --workspace --lib --tests

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Assignment statements parse binary RHS with incorrect precedence

1 participant