File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
compiler/src/dotty/tools/dotc/typer Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -215,11 +215,11 @@ class Typer extends Namer
215215 def namedImportRef (imp : ImportInfo )(using Context ): Type = {
216216 val termName = name.toTermName
217217
218- def adjustExtension (name : Name ) =
219- if required.is(ExtensionMethod ) && termName.endsWith(name .lastPart)
218+ def adjustExtension (n : Name ) =
219+ if required.is(ExtensionMethod ) && termName.endsWith(n .lastPart)
220220 // pre-check to avoid forming a new string; form extension only if it has a chance of matching `termName`
221- then name .toExtensionName
222- else name
221+ then n .toExtensionName
222+ else n
223223
224224 def recur (selectors : List [untpd.ImportSelector ]): Type = selectors match
225225 case selector :: rest =>
You can’t perform that action at this time.
0 commit comments