Skip to content

Conversation

@kddnewton
Copy link
Member

Fixes #234

We shouldn't attempt to ternary transform if-else statements if they contain a binary node in their predicate. The operator precedence gets too confusing. Just leave them be.

@kddnewton kddnewton merged commit ac88d7a into main Dec 28, 2022
@kddnewton kddnewton deleted the fix-234 branch December 28, 2022 19:07
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.

Transformation from if...else to ternary causes change in behaviour

2 participants