aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorFelix Mulder <felix.mulder@gmail.com>2016-09-19 19:26:16 +0200
committerFelix Mulder <felix.mulder@gmail.com>2016-10-10 13:25:34 +0200
commite24289ac19a21c6b3794d02e8fe42766224f173c (patch)
tree94dae1ffb70995c2851550952f0f17a953936711 /test
parent628b7f317756ce2c366359a7399b8dda9d0190b7 (diff)
downloaddotty-e24289ac19a21c6b3794d02e8fe42766224f173c.tar.gz
dotty-e24289ac19a21c6b3794d02e8fe42766224f173c.tar.bz2
dotty-e24289ac19a21c6b3794d02e8fe42766224f173c.zip
Make relevant parts of compiler conform to new error handling
Diffstat (limited to 'test')
-rw-r--r--test/test/CompilerTest.scala4
-rw-r--r--test/test/OtherEntryPointsTest.scala4
2 files changed, 4 insertions, 4 deletions
diff --git a/test/test/CompilerTest.scala b/test/test/CompilerTest.scala
index 942948f08..8cf6b2feb 100644
--- a/test/test/CompilerTest.scala
+++ b/test/test/CompilerTest.scala
@@ -5,7 +5,7 @@ import dotty.partest.DPConfig
import dotty.tools.dotc.{Main, Bench, Driver}
import dotty.tools.dotc.interfaces.Diagnostic.ERROR
import dotty.tools.dotc.reporting._
-import diagnostic.Message
+import diagnostic.MessageContainer
import dotty.tools.dotc.util.SourcePosition
import dotty.tools.dotc.config.CompilerCommand
import dotty.tools.io.PlainFile
@@ -238,7 +238,7 @@ abstract class CompilerTest {
val storeReporter = new Reporter with UniqueMessagePositions with HideNonSensicalMessages {
private val consoleReporter = new ConsoleReporter()
private val innerStoreReporter = new StoreReporter(consoleReporter)
- def doReport(m: Message)(implicit ctx: Context): Unit = {
+ def doReport(m: MessageContainer)(implicit ctx: Context): Unit = {
if (m.level == ERROR) {
innerStoreReporter.flush()
consoleReporter.doReport(m)
diff --git a/test/test/OtherEntryPointsTest.scala b/test/test/OtherEntryPointsTest.scala
index 824034055..abaa043c0 100644
--- a/test/test/OtherEntryPointsTest.scala
+++ b/test/test/OtherEntryPointsTest.scala
@@ -5,7 +5,7 @@ import org.junit.Assert._
import dotty.tools.dotc.Main
import dotty.tools.dotc.interfaces.{CompilerCallback, SourceFile}
import dotty.tools.dotc.reporting._
-import dotty.tools.dotc.reporting.diagnostic.Message
+import dotty.tools.dotc.reporting.diagnostic.MessageContainer
import dotty.tools.dotc.core.Contexts._
import java.io.File
import scala.collection.mutable.ListBuffer
@@ -51,7 +51,7 @@ class OtherEntryPointsTest {
private class CustomReporter extends Reporter
with UniqueMessagePositions
with HideNonSensicalMessages {
- def doReport(m: Message)(implicit ctx: Context): Unit = {
+ def doReport(m: MessageContainer)(implicit ctx: Context): Unit = {
}
}