Skip to content

Commit 5b9ede4

Browse files
committed
Fix what -Xlint should have reported if it existed
1 parent befe39b commit 5b9ede4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/reporting/Reporter.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ abstract class Reporter extends interfaces.ReporterResult {
139139

140140
def addUnreported(key: String, n: Int): Unit =
141141
val count = unreportedWarnings.getOrElse(key, 0)
142-
unreportedWarnings = unreportedWarnings.updated(key, count + 1)
142+
unreportedWarnings = unreportedWarnings.updated(key, count + n)
143143

144144
/** Issue the diagnostic, ignoring `-Wconf` and `@nowarn` configurations,
145145
* but still honouring `-nowarn`, `-Werror`, and conditional warnings. */

0 commit comments

Comments
 (0)