File tree 2 files changed +3
-3
lines changed
compiler/src/dotty/tools/dotc
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -88,8 +88,8 @@ object desugar {
88
88
else {
89
89
def msg =
90
90
s " no matching symbol for ${tp.symbol.showLocated} in ${defctx.owner} / ${defctx.effectiveScope.toList}"
91
- ErrorType (msg).assertingErrorsReported(msg)
92
- }
91
+ ErrorType (msg).assertingErrorsReported(msg)
92
+ }
93
93
case _ =>
94
94
mapOver(tp)
95
95
}
Original file line number Diff line number Diff line change @@ -631,7 +631,7 @@ class TypeComparer(initctx: Context) extends DotClass with ConstraintHandling {
631
631
case EtaExpansion (tycon1) => recur(tycon1, tp2)
632
632
case _ => tp2 match {
633
633
case tp2 : HKTypeLambda => false // this case was covered in thirdTry
634
- case _ => tp2.isLambdaSub && isSubType(tp1.resultType, tp2.appliedTo(tp1.paramRefs))
634
+ case _ => tp2.typeParams.hasSameLengthAs(tp1.paramRefs) && isSubType(tp1.resultType, tp2.appliedTo(tp1.paramRefs))
635
635
}
636
636
}
637
637
compareHKLambda
You can’t perform that action at this time.
0 commit comments