File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed
language-server/test/dotty/tools/languageserver Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -174,4 +174,18 @@ class HoverTest {
174174 |} """ .withSource
175175 .hover(m1 to m2, hoverContent(" Int" , " hello" ))
176176 }
177+
178+ @ Test def i4678 : Unit = {
179+ code """ class Foo {
180+ | val x: Int = ( ${m1}1: ${m2} ${m3}@annot1 @annot2 @annot3 @annot4 @annot5 ${m4})
181+ |}
182+ |class annot1 extends scala.annotation.Annotation
183+ |class annot2 extends scala.annotation.Annotation
184+ |class annot3 extends scala.annotation.Annotation
185+ |class annot4 extends scala.annotation.Annotation
186+ |class annot5 extends scala.annotation.Annotation
187+ | """ .withSource
188+ .hover(m1 to m2, hoverContent(" Int(1)" ))
189+ .hover(m3 to m4, hoverContent(" Int(1) @annot1 @annot2 @annot3 @annot4 @annot5" ))
190+ }
177191}
You can’t perform that action at this time.
0 commit comments