We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a09e4b2 commit 7e45458Copy full SHA for 7e45458
compiler/src/dotty/tools/dotc/typer/Typer.scala
@@ -215,11 +215,11 @@ class Typer extends Namer
215
def namedImportRef(imp: ImportInfo)(using Context): Type = {
216
val termName = name.toTermName
217
218
- def adjustExtension(name: Name) =
219
- if required.is(ExtensionMethod) && termName.endsWith(name.lastPart)
+ def adjustExtension(n: Name) =
+ if required.is(ExtensionMethod) && termName.endsWith(n.lastPart)
220
// 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
+ then n.toExtensionName
+ else n
223
224
def recur(selectors: List[untpd.ImportSelector]): Type = selectors match
225
case selector :: rest =>
0 commit comments