Skip to content

Commit c2c78d7

Browse files
dwijnandodersky
authored andcommitted
Add a test case which still fails
1 parent 6db1423 commit c2c78d7

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

compiler/test/dotty/tools/repl/ReplCompilerTests.scala

+14
Original file line numberDiff line numberDiff line change
@@ -423,6 +423,20 @@ class ReplCompilerTests extends ReplTest:
423423
s2
424424
}
425425

426+
@Test def i15562b: Unit = initially {
427+
val s1 = run("List(1, 2).filter(_ % 2 == 0).foreach(println)")
428+
assertEquals("2", storedOutput().trim)
429+
s1
430+
} andThen { s1 ?=>
431+
val comp = tabComplete("val x = false + true; List(1, 2).filter(_ % 2 == 0).fore")
432+
assertEquals(List("foreach"), comp.distinct)
433+
s1
434+
} andThen {
435+
val s2 = run("List(1, 2).filter(_ % 2 == 0).foreach(println)")
436+
assertEquals("2", storedOutput().trim)
437+
s2
438+
}
439+
426440
object ReplCompilerTests:
427441

428442
private val pattern = Pattern.compile("\\r[\\n]?|\\n");

0 commit comments

Comments
 (0)