Skip to content

Commit 38c0a1e

Browse files
committed
Honor fewest unused warnings
1 parent 7b247f0 commit 38c0a1e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -573,6 +573,7 @@ object CheckUnused:
573573
end checkExplicit
574574
// begin
575575
if !infos.skip(m)
576+
&& !(ctx.settings.Yunused.value == "fewest" && m.nextOverriddenSymbol.exists)
576577
&& !allowed
577578
then
578579
checkExplicit()

0 commit comments

Comments
 (0)