From e24289ac19a21c6b3794d02e8fe42766224f173c Mon Sep 17 00:00:00 2001 From: Felix Mulder Date: Mon, 19 Sep 2016 19:26:16 +0200 Subject: Make relevant parts of compiler conform to new error handling --- src/dotty/tools/dotc/reporting/StoreReporter.scala | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/dotty/tools/dotc/reporting/StoreReporter.scala') diff --git a/src/dotty/tools/dotc/reporting/StoreReporter.scala b/src/dotty/tools/dotc/reporting/StoreReporter.scala index fa4fd991f..3744a35dd 100644 --- a/src/dotty/tools/dotc/reporting/StoreReporter.scala +++ b/src/dotty/tools/dotc/reporting/StoreReporter.scala @@ -6,7 +6,7 @@ import core.Contexts.Context import collection.mutable import Reporter.{Error, Warning} import config.Printers.typr -import diagnostic.Message +import diagnostic.MessageContainer import diagnostic.messages._ /** @@ -14,9 +14,9 @@ import diagnostic.messages._ */ class StoreReporter(outer: Reporter) extends Reporter { - private var infos: mutable.ListBuffer[Message] = null + private var infos: mutable.ListBuffer[MessageContainer] = null - def doReport(m: Message)(implicit ctx: Context): Unit = { + def doReport(m: MessageContainer)(implicit ctx: Context): Unit = { typr.println(s">>>> StoredError: ${m.message}") // !!! DEBUG if (infos == null) infos = new mutable.ListBuffer infos += m -- cgit v1.2.3