aboutsummaryrefslogtreecommitdiff
path: root/compiler/src/dotty/tools/dotc/repl/NewLinePrintWriter.scala
blob: 8e36a0ae47a06f75fbe6d0680cabafa5c06af0ce (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
package dotty.tools
package dotc
package repl
import java.io.{Writer, PrintWriter}

class NewLinePrintWriter(out: Writer, autoFlush: Boolean)
extends PrintWriter(out, autoFlush) {
  def this(out: Writer) = this(out, false)
  override def println(): Unit = { print("\n"); flush() }
}