@@ -69,8 +69,8 @@ object Implicits:
6969 * method with the selecting name? False otherwise.
7070 */
7171 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
7474 case _ => false
7575
7676 def strictEquality (using Context ): Boolean =
@@ -1034,9 +1034,9 @@ trait Implicits:
10341034 pt, locked)
10351035 }
10361036 pt match
1037- case SelectionProto (name : TermName , mbrType, _, _) if cand.isExtension =>
1037+ case selProto @ SelectionProto (_ : TermName , mbrType, _, _) if cand.isExtension =>
10381038 def tryExtension (using Context ) =
1039- extMethodApply(untpd.Select (untpdGenerated, name.toExtensionName ), argument, mbrType)
1039+ extMethodApply(untpd.Select (untpdGenerated, selProto.extensionName ), argument, mbrType)
10401040 if cand.isConversion then
10411041 val extensionCtx, conversionCtx = ctx.fresh.setNewTyperState()
10421042 val extensionResult = tryExtension(using extensionCtx)
0 commit comments