Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

in & ternary precedence fixes #260

Merged
merged 2 commits into from
May 18, 2021

Conversation

willox
Copy link
Contributor

@willox willox commented Mar 23, 2021

Fixes #122
Fixes x ? y : z = 0 being treated as x ? y : (z = 0) instead of (x ? y : z) = 0.

The issue happened with any assignment operator, hopefully this change is reasonable.

@SpaceManiac SpaceManiac merged commit 80f40fe into SpaceManiac:master May 18, 2021
@SpaceManiac SpaceManiac added this to the suite v1.7 milestone May 19, 2021
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.

Ternary has precedence over BinaryOp::In
2 participants