Skip to content

Commit a1fd313

Browse files
authored
Merge pull request #641 from scala/backport-lts-3.3-24264
Backport "Exclude synthetic opaque proxy from lint" to 3.3 LTS
2 parents a7628fd + ab5c3e8 commit a1fd313

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)