Skip to content

Commit

Permalink
Fix CompletionTest.importAnnotationAfterImport expectations
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
dwijnand committed Sep 26, 2024
1 parent af0283f commit 905cbd1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -987,7 +987,7 @@ class CompletionTest {

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

@Test def completeTemplateConstrArgType: Unit = {
code"""import scala.concurrent.Future
Expand Down

0 comments on commit 905cbd1

Please sign in to comment.