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 ae24d64 commit 527aa31Copy full SHA for 527aa31
compiler/src/dotty/tools/dotc/transform/CheckUnused.scala
@@ -356,7 +356,7 @@ object CheckUnused:
356
def registerDef(memDef: tpd.MemberDef)(using Context): Unit =
357
// register the annotations for usage
358
registerUsedAnnotation(memDef.symbol)
359
- if !memDef.symbol.isUnusedAnnot then
+ if !memDef.symbol.isUnusedAnnot && !memDef.symbol.isAllOf(Flags.AccessorCreationFlags) then
360
if memDef.symbol.is(Param) && !isSyntheticMainParam(memDef.symbol) && !memDef.symbol.ownerIsTrivial then
361
if memDef.symbol.isOneOf(GivenOrImplicit) then
362
implicitParamInScope += memDef
0 commit comments