aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/test/CompilerTest.scala6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/test/CompilerTest.scala b/test/test/CompilerTest.scala
index 739bba46d..ef2f719fc 100644
--- a/test/test/CompilerTest.scala
+++ b/test/test/CompilerTest.scala
@@ -93,12 +93,12 @@ abstract class CompilerTest {
if (args.contains("-rewrite")) {
val file = new PlainFile(filePath)
val data = file.toByteArray
- val cs = data.map(_.toChar)
- println(s"data = ${cs.mkString}")
+ // compile with rewrite
compileArgs((filePath :: args).toArray, expErrors)
+ // compile again, check that file now compiles without -language:Scala2
val plainArgs = args.filter(arg => arg != "-rewrite" && arg != "-language:Scala2")
- println(s"plainArgs = $plainArgs")
compileFile(prefix, fileName, plainArgs, extension, runTest)
+ // restore original test file
val out = file.output
out.write(data)
out.close()