@@ -69,8 +69,8 @@ object Implicits:
69
69
* method with the selecting name? False otherwise.
70
70
*/
71
71
def hasExtMethod (tp : Type , expected : Type )(using Context ) = expected match
72
- case SelectionProto (name , _, _, _) =>
73
- tp.memberBasedOnFlags(name.toExtensionName , required = ExtensionMethod ).exists
72
+ case selProto @ SelectionProto (_ : TermName , _, _, _) =>
73
+ tp.memberBasedOnFlags(selProto.extensionName , required = ExtensionMethod ).exists
74
74
case _ => false
75
75
76
76
def strictEquality (using Context ): Boolean =
@@ -1034,9 +1034,9 @@ trait Implicits:
1034
1034
pt, locked)
1035
1035
}
1036
1036
pt match
1037
- case SelectionProto (name : TermName , mbrType, _, _) if cand.isExtension =>
1037
+ case selProto @ SelectionProto (_ : TermName , mbrType, _, _) if cand.isExtension =>
1038
1038
def tryExtension (using Context ) =
1039
- extMethodApply(untpd.Select (untpdGenerated, name.toExtensionName ), argument, mbrType)
1039
+ extMethodApply(untpd.Select (untpdGenerated, selProto.extensionName ), argument, mbrType)
1040
1040
if cand.isConversion then
1041
1041
val extensionCtx, conversionCtx = ctx.fresh.setNewTyperState()
1042
1042
val extensionResult = tryExtension(using extensionCtx)
0 commit comments