Skip to content

Commit c676585

Browse files
committed
Add hover test
1 parent fab9114 commit c676585

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

language-server/test/dotty/tools/languageserver/HoverTest.scala

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)