Skip to content

Commit 905cbd1

Browse files
committed
Fix CompletionTest.importAnnotationAfterImport expectations
So, before my change, importing java.lang.annotation and then importing "annotation" will return java.lang.annotation, but complete as scala.annotation - so the completion logic (in scopeCompletions) is wrong somewhere. After my change they both return java.lang.annotation, so looks like I might have unintentionally made that logic work for this case - just need to update the test expectation.
1 parent af0283f commit 905cbd1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: language-server/test/dotty/tools/languageserver/CompletionTest.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -987,7 +987,7 @@ class CompletionTest {
987987

988988
@Test def importAnnotationAfterImport : Unit =
989989
code"""import java.lang.annotation; import annot${m1}"""
990-
.completion(("annotation", Module, "scala.annotation"))
990+
.completion(("annotation", Module, "java.lang.annotation"))
991991

992992
@Test def completeTemplateConstrArgType: Unit = {
993993
code"""import scala.concurrent.Future

0 commit comments

Comments
 (0)