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 some issues with inference Conditionals #39221

Merged
merged 4 commits into from
Jan 13, 2021
Merged

Conversation

vtjnash
Copy link
Sponsor Member

@vtjnash vtjnash commented Jan 13, 2021

No description provided.

vtjnash and others added 4 commits January 12, 2021 18:21
Try harder to equate Const(bool) with the Conditional represenation of the same
Rename typeassert_type_instance to tjoin (aka typeintersect). Also,
since the ifelse value here might not be in the regular type lattice, we
need to use the extended lattice for this evaluation.
@vtjnash vtjnash closed this Jan 13, 2021
@vtjnash vtjnash reopened this Jan 13, 2021
@vtjnash vtjnash merged commit 7896e77 into master Jan 13, 2021
@vtjnash vtjnash deleted the jn/conditional-bugs branch January 13, 2021 15:54
@Sacha0
Copy link
Member

Sacha0 commented Jan 13, 2021

Backport candidate? :) (Edit: Preemptively added the label so that this pull request doesn't get lost. Please feel welcome to remove if these changes shouldn't be backported.)

@Sacha0 Sacha0 added the backport 1.6 Change should be backported to release-1.6 label Jan 13, 2021
@vtjnash
Copy link
Sponsor Member Author

vtjnash commented Jan 18, 2021

Yes, but avoid backporting e1859a1, as that commit is 100% wrong.

@KristofferC KristofferC mentioned this pull request Jan 19, 2021
60 tasks
@KristofferC KristofferC removed the backport 1.6 Change should be backported to release-1.6 label Feb 1, 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.

4 participants