Skip to content

Commit ab5c3e8

Browse files
som-snytttgodzik
authored andcommitted
Exclude synthetic opaque proxy from lint (scala#24264)
Fixes scala#24263 [Cherry-picked 55f235c]
1 parent d8c24cd commit ab5c3e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/transform/CheckUnused.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -669,7 +669,7 @@ object CheckUnused:
669669

670670
def checkLocal(sym: Symbol, pos: SrcPos) =
671671
if ctx.settings.WunusedHas.locals
672-
&& !sym.is(InlineProxy)
672+
&& !sym.isOneOf(InlineProxy | Synthetic)
673673
then
674674
if sym.is(Mutable) && infos.asss(sym) then
675675
warnAt(pos)(UnusedSymbol.localVars)

0 commit comments

Comments
 (0)