Skip to content

Commit dd896f1

Browse files
Merge pull request #14618 from griggt/fix-6361
Fix #6361: Add regression test
2 parents 4153fea + fb75a0b commit dd896f1

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
@@ -128,6 +128,10 @@ class TabcompleteTests extends ReplTest {
128128
assertEquals(List("Predef"), tabComplete("object Foo { opaque type T = Pre"))
129129
}
130130

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

0 commit comments

Comments
 (0)