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.
2 parents a7628fd + ab5c3e8 commit a1fd313Copy full SHA for a1fd313
compiler/src/dotty/tools/dotc/transform/CheckUnused.scala
@@ -669,7 +669,7 @@ object CheckUnused:
669
670
def checkLocal(sym: Symbol, pos: SrcPos) =
671
if ctx.settings.WunusedHas.locals
672
- && !sym.is(InlineProxy)
+ && !sym.isOneOf(InlineProxy | Synthetic)
673
then
674
if sym.is(Mutable) && infos.asss(sym) then
675
warnAt(pos)(UnusedSymbol.localVars)
0 commit comments