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

fix: preserve None tuple components in the left and right liftings of ternary expressions #2120

Merged
merged 7 commits into from
Sep 8, 2023

Conversation

0xalpharush
Copy link
Contributor

This PR fixes #2025.

The problem was that the code for lifting ternary expressions would avoid processing None as a subexpression. Instead, we need to include the subexpression None in both the true and false liftings.

replaces #2033

@0xalpharush 0xalpharush changed the base branch from master to dev September 8, 2023 04:14
@0xalpharush 0xalpharush marked this pull request as ready for review September 8, 2023 04:30
@0xalpharush 0xalpharush merged commit 53c97f9 into dev Sep 8, 2023
73 checks passed
@0xalpharush 0xalpharush deleted the ternary-tuple-merge-conflicts branch September 8, 2023 04:32
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.

[Bug]: Ternary expression lifting breaks tuple assignments
2 participants