aboutsummaryrefslogtreecommitdiff
path: root/test/test/CompilerTest.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2014-05-04 13:42:45 +0200
committerSamuel Gruetter <samuel.gruetter@epfl.ch>2014-05-20 13:37:35 +0200
commit94ceb9895a539b05fd81c8abe040c276178b5507 (patch)
tree84992aee9920f62e4ffbf62529b32cffd2c3b505 /test/test/CompilerTest.scala
parent1b32071acef5c7c2c08e21ee577c7cc709876ffa (diff)
downloaddotty-94ceb9895a539b05fd81c8abe040c276178b5507.tar.gz
dotty-94ceb9895a539b05fd81c8abe040c276178b5507.tar.bz2
dotty-94ceb9895a539b05fd81c8abe040c276178b5507.zip
Reporter refactoring
Refactored reporters to increase clarity and to pave the way for having Diagnostics subclasses.
Diffstat (limited to 'test/test/CompilerTest.scala')
-rw-r--r--test/test/CompilerTest.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test/CompilerTest.scala b/test/test/CompilerTest.scala
index 1bf138d54..3a24e0421 100644
--- a/test/test/CompilerTest.scala
+++ b/test/test/CompilerTest.scala
@@ -11,7 +11,7 @@ class CompilerTest extends DottyTest {
def compileArgs(args: Array[String], xerrors: Int = 0)(implicit defaultOptions: List[String]): Unit = {
val allArgs = args ++ defaultOptions
val processor = if (allArgs.exists(_.startsWith("#"))) Bench else Main
- val nerrors = processor.process(allArgs, ctx).count(Reporter.ERROR.level)
+ val nerrors = processor.process(allArgs, ctx).errorCount
assert(nerrors == xerrors, s"Wrong # of errors. Expected: $xerrors, found: $nerrors")
}