-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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 approximateOr of (A & Double) | Null #16241
Conversation
754b68e
to
8e5e7d0
Compare
def orBaseClasses(tp: Type): List[ClassSymbol] = tp.stripTypeVar match | ||
case OrType(tp1, tp2) => | ||
if tp1.isBottomType && (tp1 frozen_<:< tp2) then orBaseClasses(tp2) | ||
else if tp2.isBottomType && (tp2 frozen_<:< tp1) then orBaseClasses(tp1) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Similar to e65305d
(#11979)
8e5e7d0
to
36a9a9f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
@dwijnand Nice cleanup ! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, nice cleanup!
[test_non_bootstrapped]