We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 09ec981 commit 6dc87feCopy full SHA for 6dc87fe
compiler/test/dotty/tools/repl/ReplCompilerTests.scala
@@ -367,6 +367,20 @@ class ReplCompilerTests extends ReplTest:
367
s2
368
}
369
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
378
+ } andThen {
379
+ val s2 = run("List(1, 2).filter(_ % 2 == 0).foreach(println)")
380
381
+ s2
382
+ }
383
+
384
object ReplCompilerTests:
385
386
private val pattern = Pattern.compile("\\r[\\n]?|\\n");
0 commit comments