You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use upper bound of abstract types in exhaustivity checking (scala#23909)
closesscala#23620,
scala#24246
If the upper bound of an abstract type is not `sealed` but is
effectively sealed, it is not handled correctly, since classSym could
return a type that is not `sealed` (Object in the issue above).
If the type were not abstract, it would pass the logic that checks
whether it is an Or, And, etc., and would be handled properly.
This PR makes exhaustivity checking use the upper bound of abstract
types that are effectively sealed.
---------
Co-authored-by: Zieliński Patryk <75637004+zielinsky@users.noreply.github.com>
[Cherry-picked 520668f][modified]
0 commit comments