aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/repl/InteractiveReader.scala
diff options
context:
space:
mode:
Diffstat (limited to 'src/dotty/tools/dotc/repl/InteractiveReader.scala')
-rw-r--r--src/dotty/tools/dotc/repl/InteractiveReader.scala6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/dotty/tools/dotc/repl/InteractiveReader.scala b/src/dotty/tools/dotc/repl/InteractiveReader.scala
index 6bab0a0c6..6ec6a0463 100644
--- a/src/dotty/tools/dotc/repl/InteractiveReader.scala
+++ b/src/dotty/tools/dotc/repl/InteractiveReader.scala
@@ -6,7 +6,7 @@ import dotc.core.Contexts.Context
/** Reads lines from an input stream */
trait InteractiveReader {
- def readLine(prompt: String)(implicit ctx: Context): String
+ def readLine(prompt: String): String
val interactive: Boolean
}
@@ -16,9 +16,9 @@ object InteractiveReader {
/** Create an interactive reader. Uses JLine if the
* library is available, but otherwise uses a
* SimpleReader. */
- def createDefault(): InteractiveReader = {
+ def createDefault(in: Interpreter)(implicit ctx: Context): InteractiveReader = {
try {
- new AmmoniteReader()
+ new AmmoniteReader(in)
} catch { case e =>
//out.println("jline is not available: " + e) //debug
e.printStackTrace()