aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/reporting
diff options
context:
space:
mode:
authorSamuel Gruetter <samuel.gruetter@epfl.ch>2014-03-26 21:53:08 +0100
committerSamuel Gruetter <samuel.gruetter@epfl.ch>2014-04-02 15:17:58 +0200
commit762caa2c178fec0d1535ac721504c9a147d07424 (patch)
tree9d8dc254370a4789cafd7e80f0e6b30b6a7f602a /src/dotty/tools/dotc/reporting
parentbd15941015cd4f438665b2f1b2dceb0bbb3e9aa5 (diff)
downloaddotty-762caa2c178fec0d1535ac721504c9a147d07424.tar.gz
dotty-762caa2c178fec0d1535ac721504c9a147d07424.tar.bz2
dotty-762caa2c178fec0d1535ac721504c9a147d07424.zip
fix: do not count suppressed messages for summary
Diffstat (limited to 'src/dotty/tools/dotc/reporting')
-rw-r--r--src/dotty/tools/dotc/reporting/Reporter.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dotty/tools/dotc/reporting/Reporter.scala b/src/dotty/tools/dotc/reporting/Reporter.scala
index 0aea5c3a3..b0404c6b3 100644
--- a/src/dotty/tools/dotc/reporting/Reporter.scala
+++ b/src/dotty/tools/dotc/reporting/Reporter.scala
@@ -220,7 +220,7 @@ abstract class Reporter {
def report(d: Diagnostic)(implicit ctx: Context): Unit =
if (!isHidden(d)) {
doReport(d)
- count(d.promotedSeverity.level) += 1
+ if (!d.isSuppressed) count(d.promotedSeverity.level) += 1
}
def incomplete(d: Diagnostic)(implicit ctx: Context): Unit =