Skip to content

Commit ba501f4

Browse files
authored
Merge pull request #9234 from dotty-staging/fix-i8425-on-windows
Fix the test for i8425 on Windows: filter out \r bytes.
2 parents 4b3fdf6 + 4bd3cd9 commit ba501f4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/run/i8425.scala

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@ import java.io.{ OutputStream, PrintStream }
33
trait T {
44
val text: String
55
val stream = new PrintStream(new OutputStream {
6-
def write(b: Int) = Console.println(s"text: $b")
6+
def write(b: Int) =
7+
if b != 13 then // this filters out \r on Windows
8+
Console.println(s"text: $b")
79
}) {
810
override def println(x: Any) = ???
911
}

0 commit comments

Comments
 (0)