blob: f751949e84f1f7d4ef6a6b62970a019af30d0c6c (
plain) (
tree)
|
|
import java.io.StringReader
import scala.io.StdIn.readLine
object Test extends dotty.runtime.LegacyApp {
Console.withIn(new StringReader("")) {
readLine()
readLine("prompt\n")
readLine("%s prompt\n", "fancy")
readLine("%s %s prompt\n", "immensely", "fancy")
}
}
|