We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent befe39b commit 5b9ede4Copy full SHA for 5b9ede4
compiler/src/dotty/tools/dotc/reporting/Reporter.scala
@@ -139,7 +139,7 @@ abstract class Reporter extends interfaces.ReporterResult {
139
140
def addUnreported(key: String, n: Int): Unit =
141
val count = unreportedWarnings.getOrElse(key, 0)
142
- unreportedWarnings = unreportedWarnings.updated(key, count + 1)
+ unreportedWarnings = unreportedWarnings.updated(key, count + n)
143
144
/** Issue the diagnostic, ignoring `-Wconf` and `@nowarn` configurations,
145
* but still honouring `-nowarn`, `-Werror`, and conditional warnings. */
0 commit comments