From 4e05acd46b886e0a7e577a5caa9b6145a69c250b Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Fri, 17 Jan 2014 19:14:24 +0100 Subject: Fixing the test suite. - fix wrong directories - add xml where needed to teh classpath - reduce expected stub # because xml was added --- src/dotty/tools/dotc/reporting/ConsoleReporter.scala | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/dotty/tools/dotc/reporting/ConsoleReporter.scala b/src/dotty/tools/dotc/reporting/ConsoleReporter.scala index 50bbdb671..c10fd91f9 100644 --- a/src/dotty/tools/dotc/reporting/ConsoleReporter.scala +++ b/src/dotty/tools/dotc/reporting/ConsoleReporter.scala @@ -28,10 +28,10 @@ class ConsoleReporter( if (pos.exists) { printMessage(" " * (pos.column - 1) + "^") } /** Prints the message. */ - def printMessage(msg: String) { writer.print(msg + "\n"); writer.flush() } + def printMessage(msg: String): Unit = { writer.print(msg + "\n"); writer.flush() } /** Prints the message with the given position indication. */ - def printMessageAndPos(msg: String, pos: SourcePosition)(implicit ctx: Context) { + def printMessageAndPos(msg: String, pos: SourcePosition)(implicit ctx: Context): Unit = { val posStr = if (pos.exists) s"$pos: " else "" printMessage(posStr + msg) if (pos.exists) { @@ -61,5 +61,5 @@ class ConsoleReporter( } } - override def flush()(implicit ctx: Context) { writer.flush() } + override def flush()(implicit ctx: Context): Unit = { writer.flush() } } -- cgit v1.2.3