Skip to content

Commit 762caa2

Browse files
fix: do not count suppressed messages for summary
1 parent bd15941 commit 762caa2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ abstract class Reporter {
220220
def report(d: Diagnostic)(implicit ctx: Context): Unit =
221221
if (!isHidden(d)) {
222222
doReport(d)
223-
count(d.promotedSeverity.level) += 1
223+
if (!d.isSuppressed) count(d.promotedSeverity.level) += 1
224224
}
225225

226226
def incomplete(d: Diagnostic)(implicit ctx: Context): Unit =

0 commit comments

Comments
 (0)