From 18a69f7bd230bc06696e41be53a6735aa6e94ccc Mon Sep 17 00:00:00 2001 From: Felix Mulder Date: Fri, 16 Sep 2016 13:34:57 +0200 Subject: Rename Diagnostic to diagnostic.Message --- src/dotty/tools/dotc/reporting/ThrowingReporter.scala | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/dotty/tools/dotc/reporting/ThrowingReporter.scala') diff --git a/src/dotty/tools/dotc/reporting/ThrowingReporter.scala b/src/dotty/tools/dotc/reporting/ThrowingReporter.scala index 026453036..25adc6a41 100644 --- a/src/dotty/tools/dotc/reporting/ThrowingReporter.scala +++ b/src/dotty/tools/dotc/reporting/ThrowingReporter.scala @@ -4,6 +4,7 @@ package reporting import core.Contexts.Context import collection.mutable +import diagnostic.Message import Reporter._ /** @@ -11,8 +12,8 @@ import Reporter._ * info to the underlying reporter. */ class ThrowingReporter(reportInfo: Reporter) extends Reporter { - def doReport(d: Diagnostic)(implicit ctx: Context): Unit = d match { - case _: Error => throw d - case _ => reportInfo.doReport(d) + def doReport(m: Message)(implicit ctx: Context): Unit = m match { + case _: Error => throw m + case _ => reportInfo.doReport(m) } } -- cgit v1.2.3