aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorDmitry Petrashko <dark@d-d.me>2016-05-10 07:04:30 -0400
committerDmitry Petrashko <dark@d-d.me>2016-05-10 07:04:30 -0400
commit134ad7a6a172fec97dc438dd0aff3766a0f0944a (patch)
treea8a132424fbf4604b7eb80e64f44f1bc2cab92c3 /test
parent181d7e41894f0e06af140dc355a7891ba737681c (diff)
parent1582959b3ed6c676e5e3265282046363d2c06cec (diff)
downloaddotty-134ad7a6a172fec97dc438dd0aff3766a0f0944a.tar.gz
dotty-134ad7a6a172fec97dc438dd0aff3766a0f0944a.tar.bz2
dotty-134ad7a6a172fec97dc438dd0aff3766a0f0944a.zip
Merge pull request #1233 from felixmulder/topic/repl-syntax-highlighting
Syntax highlighting for REPL using ammonite as base instead of JLine
Diffstat (limited to 'test')
-rw-r--r--test/test/TestREPL.scala4
-rw-r--r--test/test/TypeStealer.scala (renamed from test/test/DottyRepl.scala)2
2 files changed, 3 insertions, 3 deletions
diff --git a/test/test/TestREPL.scala b/test/test/TestREPL.scala
index d01038c43..0fe05794f 100644
--- a/test/test/TestREPL.scala
+++ b/test/test/TestREPL.scala
@@ -20,7 +20,7 @@ class TestREPL(script: String) extends REPL {
override lazy val config = new REPL.Config {
override val output = new NewLinePrintWriter(out)
- override def input(implicit ctx: Context) = new InteractiveReader {
+ override def input(in: Interpreter)(implicit ctx: Context) = new InteractiveReader {
val lines = script.lines
def readLine(prompt: String): String = {
val line = lines.next
@@ -44,4 +44,4 @@ class TestREPL(script: String) extends REPL {
assert(false)
}
}
-} \ No newline at end of file
+}
diff --git a/test/test/DottyRepl.scala b/test/test/TypeStealer.scala
index 74f6ee248..ae48d9a5b 100644
--- a/test/test/DottyRepl.scala
+++ b/test/test/TypeStealer.scala
@@ -6,7 +6,7 @@ import scala.tools.nsc.Settings
* Dotty requires a mangled bootclasspath to start. It means that `console` mode of sbt doesn't work for us.
* At least I(Dmitry) wasn't able to make sbt fork in console
*/
-object DottyRepl {
+object TypeStealer {
def main(args: Array[String]): Unit = {
def repl = new ILoop {}