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

Ternary override type when reassigning #6420

Merged
merged 2 commits into from
Sep 4, 2021

Conversation

orklah
Copy link
Collaborator

@orklah orklah commented Sep 4, 2021

This fixes #6384.

I feel like TernaryAnalyzer should actually be much more similar to IfElseAnalyzer. I'd bet there is a lot of bugs there that is resolved in the other.

I tried going all the way and creating a set of Virtual statements to push to IfElseAnalyzer but I forgot that there is a slight difference because one is an expression and the other a statement, so you can't just translate one into the other

@weirdan weirdan merged commit 5dfd157 into vimeo:master Sep 4, 2021
@weirdan
Copy link
Collaborator

weirdan commented Sep 4, 2021

Thanks!

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.

remove old types when both side of a ternary reassign a variable
2 participants