diff options
author | Martin Odersky <odersky@gmail.com> | 2013-11-18 19:27:18 +0100 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2013-11-18 19:27:36 +0100 |
commit | acc9d750d1776d8d1c864fb3ddaadbaec34d286e (patch) | |
tree | c5129664583164aef17f0c42a634ae9e6dbf8e62 /src/dotty/tools/dotc/Run.scala | |
parent | b6d7b28403c34f61c5317c37acce1b4118a4181c (diff) | |
download | dotty-acc9d750d1776d8d1c864fb3ddaadbaec34d286e.tar.gz dotty-acc9d750d1776d8d1c864fb3ddaadbaec34d286e.tar.bz2 dotty-acc9d750d1776d8d1c864fb3ddaadbaec34d286e.zip |
Added unit testing support
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 |