aboutsummaryrefslogtreecommitdiff
path: root/compiler/test
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/test')
-rw-r--r--compiler/test/dotty/tools/dotc/repl/TestREPL.scala5
1 files changed, 4 insertions, 1 deletions
diff --git a/compiler/test/dotty/tools/dotc/repl/TestREPL.scala b/compiler/test/dotty/tools/dotc/repl/TestREPL.scala
index 131a88ab1..44523aae9 100644
--- a/compiler/test/dotty/tools/dotc/repl/TestREPL.scala
+++ b/compiler/test/dotty/tools/dotc/repl/TestREPL.scala
@@ -58,8 +58,11 @@ class TestREPL(script: String) extends REPL {
val printed = out.toString
val transcript = printed.drop(printed.indexOf(config.prompt))
if (transcript.toString.lines.toList != script.lines.toList) {
- println("input differs from transcript:")
+ println("input differs from transcript (copy is repl.transcript):")
println(transcript)
+ val s = new PrintStream("repl.transcript")
+ s.print(transcript)
+ s.close()
assert(false)
}
}