File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
compiler/src/dotty/tools/dotc Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -88,8 +88,8 @@ object desugar {
8888 else {
8989 def msg =
9090 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+ }
9393 case _ =>
9494 mapOver(tp)
9595 }
Original file line number Diff line number Diff line change @@ -631,7 +631,7 @@ class TypeComparer(initctx: Context) extends DotClass with ConstraintHandling {
631631 case EtaExpansion (tycon1) => recur(tycon1, tp2)
632632 case _ => tp2 match {
633633 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))
635635 }
636636 }
637637 compareHKLambda
You can’t perform that action at this time.
0 commit comments