Skip to content

Commit fb75a0b

Browse files
committed
Add regression test for #6361
1 parent 727395c commit fb75a0b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,10 @@ class TabcompleteTests extends ReplTest {
126126
assertEquals(List("Predef"), tabComplete("object Foo { opaque type T = Pre"))
127127
}
128128

129+
@Test def i6361 = initially {
130+
assertEquals(Nil, tabComplete("object foo { given bar: Int = 10 }; import foo.*; ba"))
131+
}
132+
129133
@Test def i12600 = initially {
130134
assertEquals(List("select", "show", "simplified", "substituteTypes"),
131135
tabComplete("import quoted.* ; def fooImpl(using Quotes): Expr[Int] = { import quotes.reflect.* ; TypeRepr.of[Int].s"))

0 commit comments

Comments
 (0)