summaryrefslogtreecommitdiff
path: root/test-nsc/files/pos/bug32.scala
blob: 4354727d1a091fe4457a6799750b872bf5892cc5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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");
      ()

}