diff options
Diffstat (limited to 'src/dotty/tools/dotc/Run.scala')
-rw-r--r-- | src/dotty/tools/dotc/Run.scala | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/dotty/tools/dotc/Run.scala b/src/dotty/tools/dotc/Run.scala index b12511478..c662aabfa 100644 --- a/src/dotty/tools/dotc/Run.scala +++ b/src/dotty/tools/dotc/Run.scala @@ -5,6 +5,7 @@ import core._ import Contexts._, Periods._, Symbols._ import io.PlainFile import util.{SourceFile, NoSource, Stats, SimpleMap} +import reporting.Reporter class Run(comp: Compiler)(implicit ctx: Context) { @@ -28,8 +29,11 @@ class Run(comp: Compiler)(implicit ctx: Context) { } } - def printSummary(): Unit = { - ctx.typerState.reporter.printSummary + /** Print summary; return # of errors encountered */ + def printSummary(): Reporter = { Constraint.printMax() + val r = ctx.typerState.reporter + r.printSummary + r } }
\ No newline at end of file |