Skip to content

Commit d11fccb

Browse files
committed
REPL: properly redirect streams
I observed local test failures when running ReplTests without this.
1 parent f2682c8 commit d11fccb

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

compiler/src/dotty/tools/repl/ReplDriver.scala

+5-1
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,11 @@ class ReplDriver(settings: Array[String],
164164
try {
165165
System.setOut(out)
166166
System.setErr(out)
167-
op
167+
Console.withOut(out) {
168+
Console.withErr(out) {
169+
op
170+
}
171+
}
168172
}
169173
finally {
170174
System.setOut(savedOut)

0 commit comments

Comments
 (0)