diff options
Diffstat (limited to 'test/pos/bug32.scala')
-rw-r--r-- | test/pos/bug32.scala | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test/pos/bug32.scala b/test/pos/bug32.scala new file mode 100644 index 0000000000..4354727d1a --- /dev/null +++ b/test/pos/bug32.scala @@ -0,0 +1,17 @@ +import java.io._; + +class PromptStream(s: OutputStream) extends PrintStream(s) { + override def println() = super.println(); +} + +object Main { + + val out = new PromptStream(System.out); + + System.setOut(out); + + def main(args: Array[String]) = + //out.println("hello world"); + () + +} |