File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
compiler/src/dotty/tools/dotc/core Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -624,8 +624,8 @@ object Denotations {
624624 tp2 match {
625625 case tp2 : PolyType =>
626626 tp1
627- case tp2 : MethodType if ctx.typeComparer.matchingMethodParams(tp1, tp2) &&
628- tp1.isImplicitMethod == tp2.isImplicitMethod =>
627+ case tp2 : MethodType
628+ if ctx.typeComparer.matchingMethodParams(tp1, tp2) && ( tp1.companion eq tp2.companion) =>
629629 tp1.derivedLambdaType(
630630 mergeParamNames(tp1, tp2),
631631 tp1.paramInfos,
@@ -683,8 +683,7 @@ object Denotations {
683683 case tp1 : MethodType =>
684684 tp2 match {
685685 case tp2 : MethodType
686- if ctx.typeComparer.matchingMethodParams(tp1, tp2) &&
687- tp1.isImplicitMethod == tp2.isImplicitMethod =>
686+ if ctx.typeComparer.matchingMethodParams(tp1, tp2) && (tp1.companion eq tp2.companion) =>
688687 tp1.derivedLambdaType(
689688 mergeParamNames(tp1, tp2),
690689 tp1.paramInfos,
You can’t perform that action at this time.
0 commit comments