Skip to content

Commit

Permalink
Use upper bound of abstract types
Browse files Browse the repository at this point in the history
  • Loading branch information
retronym committed Feb 22, 2021
1 parent 670f5c7 commit 5bf0524
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -411,7 +411,7 @@ trait MatchTreeMaking extends MatchCodeGen with Debugging {
case TypeRef(pre, _, _) if !pre.isStable => // e.g. _: Outer#Inner
false
case TypeRef(pre, sym, args) =>
val testedBinderClass = testedBinder.info.typeSymbol
val testedBinderClass = testedBinder.info.upperBound.typeSymbol
val testedBinderType = testedBinder.info.baseType(testedBinderClass)

val testedPrefixIsExpectedTypePrefix = pre =:= testedBinderType.prefix
Expand Down

0 comments on commit 5bf0524

Please sign in to comment.