We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6db1423 commit c2c78d7Copy full SHA for c2c78d7
compiler/test/dotty/tools/repl/ReplCompilerTests.scala
@@ -423,6 +423,20 @@ class ReplCompilerTests extends ReplTest:
423
s2
424
}
425
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
434
+ } andThen {
435
+ val s2 = run("List(1, 2).filter(_ % 2 == 0).foreach(println)")
436
437
+ s2
438
+ }
439
+
440
object ReplCompilerTests:
441
442
private val pattern = Pattern.compile("\\r[\\n]?|\\n");
0 commit comments