Skip to content

Commit db87741

Browse files
committed
Fix TabcompleteTests
Because we add stable terms when completing a type, Java classes will now appear twice in the completion results when completing a type.
1 parent a746215 commit db87741

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,9 @@ class TabcompleteTests extends ReplTest {
7777
run(src)
7878
}
7979
.andThen { implicit state =>
80-
val expected = List("FileDescriptor")
80+
// FileDescriptor appears once as term, and once as type (we're completing a type, so we
81+
// suggest types and terms that may be in a path).
82+
val expected = List("FileDescriptor", "FileDescriptor")
8183
assertEquals(expected, tabComplete("val foo: FileDesc"))
8284
}
8385
}

0 commit comments

Comments
 (0)