Skip to content

in & ternary precedence fixes#260

Merged
SpaceManiac merged 2 commits intoSpaceManiac:masterfrom
sohpeach:ternary_precedence
May 18, 2021
Merged

in & ternary precedence fixes#260
SpaceManiac merged 2 commits intoSpaceManiac:masterfrom
sohpeach:ternary_precedence

Conversation

@sohpeach
Copy link
Copy Markdown
Contributor

@sohpeach sohpeach 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