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 819586f commit 94defc2Copy full SHA for 94defc2
compiler/src/dotty/tools/dotc/transform/CheckUnused.scala
@@ -926,7 +926,7 @@ object CheckUnused:
926
sym.is(Private, butNot = ParamAccessor)
927
|| sym.owner.isAnonymousClass && !sym.isEffectivelyOverride
928
def isEffectivelyOverride: Boolean =
929
- sym.is(Override) || sym.nextOverriddenSymbol.exists
+ sym.is(Override) || sym.allOverriddenSymbols.hasNext
930
// pick the symbol the user wrote for purposes of tracking
931
inline def userSymbol: Symbol=
932
if sym.denot.is(ModuleClass) then sym.denot.companionModule else sym
0 commit comments