diff options
author | Martin Odersky <odersky@gmail.com> | 2015-10-26 09:47:21 +0100 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2015-10-26 09:47:21 +0100 |
commit | 065a0026924f722e9844c8e314180bb4cebca236 (patch) | |
tree | 5b3beb65682e12c729c68ecd2b61b9a4d16bc2f8 /src/dotty/tools/dotc/reporting/StoreReporter.scala | |
parent | d4f30d1a268a51ee74c98f6ae0f45136274536af (diff) | |
download | dotty-065a0026924f722e9844c8e314180bb4cebca236.tar.gz dotty-065a0026924f722e9844c8e314180bb4cebca236.tar.bz2 dotty-065a0026924f722e9844c8e314180bb4cebca236.zip |
Don't count suppressed errors
If an error message was supressed to count it in the total.
Diffstat (limited to 'src/dotty/tools/dotc/reporting/StoreReporter.scala')
-rw-r--r-- | src/dotty/tools/dotc/reporting/StoreReporter.scala | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/dotty/tools/dotc/reporting/StoreReporter.scala b/src/dotty/tools/dotc/reporting/StoreReporter.scala index 1991790b5..8209839eb 100644 --- a/src/dotty/tools/dotc/reporting/StoreReporter.scala +++ b/src/dotty/tools/dotc/reporting/StoreReporter.scala @@ -14,10 +14,11 @@ class StoreReporter(outer: Reporter) extends Reporter { private var infos: mutable.ListBuffer[Diagnostic] = null - def doReport(d: Diagnostic)(implicit ctx: Context): Unit = { + def doReport(d: Diagnostic)(implicit ctx: Context): Boolean = { typr.println(s">>>> StoredError: ${d.msg}") // !!! DEBUG if (infos == null) infos = new mutable.ListBuffer infos += d + true } override def hasPending: Boolean = infos != null && { |