Skip to content

Commit 6dc87fe

Browse files
committed
Add a test case which still fails
1 parent 09ec981 commit 6dc87fe

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

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

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -367,6 +367,20 @@ class ReplCompilerTests extends ReplTest:
367367
s2
368368
}
369369

370+
@Test def i15562b: Unit = initially {
371+
val s1 = run("List(1, 2).filter(_ % 2 == 0).foreach(println)")
372+
assertEquals("2", storedOutput().trim)
373+
s1
374+
} andThen { s1 ?=>
375+
val comp = tabComplete("val x = false + true; List(1, 2).filter(_ % 2 == 0).fore")
376+
assertEquals(List("foreach"), comp.distinct)
377+
s1
378+
} andThen {
379+
val s2 = run("List(1, 2).filter(_ % 2 == 0).foreach(println)")
380+
assertEquals("2", storedOutput().trim)
381+
s2
382+
}
383+
370384
object ReplCompilerTests:
371385

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

0 commit comments

Comments
 (0)