diff --git a/compiler/test/dotty/tools/repl/ReplCompilerTests.scala b/compiler/test/dotty/tools/repl/ReplCompilerTests.scala index ad9be3401bfc..24f334ba0a86 100644 --- a/compiler/test/dotty/tools/repl/ReplCompilerTests.scala +++ b/compiler/test/dotty/tools/repl/ReplCompilerTests.scala @@ -65,7 +65,7 @@ class ReplCompilerTests extends ReplTest { assertEquals(1, state.imports.size) run("""mutable.Map("one" -> 1)""") assertEquals( - "val res0: scala.collection.mutable.Map[String, Int] = Map(one -> 1)", + "val res0: scala.collection.mutable.Map[String, Int] = HashMap(one -> 1)", storedOutput().trim ) } @@ -115,9 +115,10 @@ class ReplCompilerTests extends ReplTest { } @Test def i4051 = fromInitialState { implicit state => + // FIXME: shouldn't have to pass a type parameter to collect. val source = """val x: PartialFunction[Int, Int] = { case x => x } - |val y = Map(("A", 1), ("B", 2), ("X", 3)).collect { case (k, v) => v }.toList""".stripMargin + |val y = Map(("A", 1), ("B", 2), ("X", 3)).collect[Int] { case (k, v) => v }.toList""".stripMargin val expected = List( "val x: PartialFunction[Int, Int] = ", diff --git a/compiler/test/dotty/tools/repl/TabcompleteTests.scala b/compiler/test/dotty/tools/repl/TabcompleteTests.scala index f45f59668249..9d3e3525118e 100644 --- a/compiler/test/dotty/tools/repl/TabcompleteTests.scala +++ b/compiler/test/dotty/tools/repl/TabcompleteTests.scala @@ -100,7 +100,7 @@ class TabcompleteTests extends ReplTest { @Test def importScala = fromInitialState { implicit s => val comp = tabComplete("import scala.") // check that there are no special symbols leaked: , , ... - assertEquals(comp.find(_.startsWith("<")), None) + assertEquals(comp.find(_.startsWith("<")), Some("<:<")) assert(!comp.contains("package")) }