Skip to content

Commit 7e2aa57

Browse files
tgodzikzielinsky
andcommitted
Use upper bound of abstract types in exhaustivity checking (scala#23909)
closes scala#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]
1 parent 3f9878b commit 7e2aa57

File tree

0 file changed

+0
-0
lines changed

    0 file changed

    +0
    -0
    lines changed

    0 commit comments

    Comments
     (0)