aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/dotty/tools/dotc/reporting/ConsoleReporter.scala6
-rw-r--r--test/dotc/tests.scala5
-rw-r--r--test/test/ShowClassTests.scala2
3 files changed, 7 insertions, 6 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() }
}
diff --git a/test/dotc/tests.scala b/test/dotc/tests.scala
index 3fc4dca83..e109e05ae 100644
--- a/test/dotc/tests.scala
+++ b/test/dotc/tests.scala
@@ -49,8 +49,9 @@ class tests extends CompilerTest {
@Test def dotc_core = compileDir(dotcDir + "tools/dotc/core")
@Test def dotc_core_pickling = compileDir(dotcDir + "tools/dotc/core/pickling")
@Test def dotc_transform = compileDir(dotcDir + "tools/dotc/core/transform")
- @Test def dotc_parsing = compileDir(dotcDir + "tools/dotc/core/parsing")
- @Test def dotc_printing = compileDir(dotcDir + "tools/dotc/core/printing")
+ @Test def dotc_parsing = compileDir(dotcDir + "tools/dotc/parsing")
+ @Test def dotc_printing = compileDir(dotcDir + "tools/dotc/printing")
+ @Test def dotc_reporting = compileDir(dotcDir + "tools/dotc/reporting")
// @Test def dotc_compilercommand = compileFile(dotcDir + "tools/dotc/config/", "CompilerCommand")
diff --git a/test/test/ShowClassTests.scala b/test/test/ShowClassTests.scala
index 93d8213c6..6fec13342 100644
--- a/test/test/ShowClassTests.scala
+++ b/test/test/ShowClassTests.scala
@@ -127,7 +127,7 @@ class ShowClassTests extends DottyTest {
@Test
def loadDotty() = {
- showPackage("dotty", 2)
+ showPackage("dotty", 1)
}