File tree Expand file tree Collapse file tree 1 file changed +4
-11
lines changed
compiler/src/dotty/tools/dotc/core Expand file tree Collapse file tree 1 file changed +4
-11
lines changed Original file line number Diff line number Diff line change @@ -666,17 +666,10 @@ class TypeComparer(@constructorOnly initctx: Context) extends ConstraintHandling
666
666
isSubType(info1, info2)
667
667
668
668
if defn.isFunctionType(tp2) then
669
- if defn.isPolyFunctionType(tp2) then
670
- // TODO should we handle ErasedFunction is this same way?
671
- tp1.member(nme.apply).info match
672
- case info1 : PolyType =>
673
- return isSubInfo(info1, tp2.refinedInfo)
674
- case _ =>
675
- else
676
- tp1w.widenDealias match
677
- case tp1 : RefinedType =>
678
- return isSubInfo(tp1.refinedInfo, tp2.refinedInfo)
679
- case _ =>
669
+ tp1w.widenDealias match
670
+ case tp1 : RefinedType =>
671
+ return isSubInfo(tp1.refinedInfo, tp2.refinedInfo)
672
+ case _ =>
680
673
681
674
val skipped2 = skipMatching(tp1w, tp2)
682
675
if (skipped2 eq tp2) || ! Config .fastPathForRefinedSubtype then
You can’t perform that action at this time.
0 commit comments