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 {
624
624
tp2 match {
625
625
case tp2 : PolyType =>
626
626
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) =>
629
629
tp1.derivedLambdaType(
630
630
mergeParamNames(tp1, tp2),
631
631
tp1.paramInfos,
@@ -683,8 +683,7 @@ object Denotations {
683
683
case tp1 : MethodType =>
684
684
tp2 match {
685
685
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) =>
688
687
tp1.derivedLambdaType(
689
688
mergeParamNames(tp1, tp2),
690
689
tp1.paramInfos,
You can’t perform that action at this time.
0 commit comments