Skip to content

Commit 7e45458

Browse files
committed
Rename parameter for clarity
1 parent a09e4b2 commit 7e45458

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

compiler/src/dotty/tools/dotc/typer/Typer.scala

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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 =>

0 commit comments

Comments
 (0)