File tree 1 file changed +1
-1
lines changed
compiler/src/dotty/tools/dotc/transform
1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -671,7 +671,7 @@ object CheckUnused:
671
671
val termSelections = sels.flatMap(n => qual.tpe.member(n.name.toTermName).alternatives)
672
672
val sameTermPath = qual.isTerm && sym.exists && sym.owner.isType && qual.tpe.typeSymbol == sym.owner.asType
673
673
val selectionsToDealias = typeSelections ::: termSelections
674
- lazy val renamedSelection = if sameTermPath then sels.find(sel => sel.imported.name == sym.name) else None
674
+ val renamedSelection = if sameTermPath then sels.find(sel => sel.imported.name == sym.name) else None
675
675
val qualHasSymbol = simpleSelections.map(_.symbol).contains(sym) || (simpleSelections ::: selectionsToDealias).map(_.symbol).map(dealias).contains(dealiasedSym) || renamedSelection.isDefined
676
676
def selector = sels.find(sel => (sel.name.toTermName == sym.name || sel.name.toTypeName == sym.name) && symName.map(n => n.toTermName == sel.rename).getOrElse(true ))
677
677
def dealiasedSelector = if (isDerived) sels.flatMap(sel => selectionsToDealias.map(m => (sel, m.symbol))).collect {
You can’t perform that action at this time.
0 commit comments