diff options
author | Martin Odersky <odersky@gmail.com> | 2014-01-17 19:14:24 +0100 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2014-01-17 19:14:24 +0100 |
commit | 4e05acd46b886e0a7e577a5caa9b6145a69c250b (patch) | |
tree | 4a22cc4260b5e052afbae67bf3f1a902fe59bdd0 /src | |
parent | 08880b3ce03fa8f9a4b23671ef5d1d78816d28c5 (diff) | |
download | dotty-4e05acd46b886e0a7e577a5caa9b6145a69c250b.tar.gz dotty-4e05acd46b886e0a7e577a5caa9b6145a69c250b.tar.bz2 dotty-4e05acd46b886e0a7e577a5caa9b6145a69c250b.zip |
Fixing the test suite.
- fix wrong directories
- add xml where needed to teh classpath
- reduce expected stub # because xml was added
Diffstat (limited to 'src')
-rw-r--r-- | src/dotty/tools/dotc/reporting/ConsoleReporter.scala | 6 |
1 files changed, 3 insertions, 3 deletions
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() } } |