@@ -46,24 +46,24 @@ class HoverTest {
4646 | ${m1}val x = ${m2}8 $m3; ${m4}x $m5
4747 |} """ .withSource
4848 .hover(m1 to m2, hoverContent(" Int" ))
49- .hover(m2 to m3, hoverContent(" Int(8 )" ))
49+ .hover(m2 to m3, hoverContent(" (8 : Int )" ))
5050 .hover(m4 to m5, hoverContent(" Int" ))
5151 }
5252
5353 @ Test def hoverOnValDef1 : Unit = {
5454 code """ class Foo {
5555 | ${m1}final val x = 8 $m2; ${m3}x $m4
5656 |} """ .withSource
57- .hover(m1 to m2, hoverContent(" Int(8 )" ))
58- .hover(m3 to m4, hoverContent(" Int(8 )" ))
57+ .hover(m1 to m2, hoverContent(" (8 : Int )" ))
58+ .hover(m3 to m4, hoverContent(" (8 : Int )" ))
5959 }
6060
6161 @ Test def hoverOnDefDef0 : Unit = {
6262 code """ class Foo {
6363 | ${m1}def x = ${m2}8 $m3; ${m4}x $m5
6464 |} """ .withSource
6565 .hover(m1 to m2, hoverContent(" Int" ))
66- .hover(m2 to m3, hoverContent(" Int(8 )" ))
66+ .hover(m2 to m3, hoverContent(" (8 : Int )" ))
6767 .hover(m4 to m5, hoverContent(" Int" ))
6868 }
6969
@@ -83,7 +83,7 @@ class HoverTest {
8383 | ${m5}y( $m6) $m7
8484 |}
8585 """ .withSource
86- .hover(m1 to m2, hoverContent(" String (\" abc\" ) " ))
86+ .hover(m1 to m2, hoverContent(" (\" abc\" : String) " ))
8787 .hover(m3 to m4, hoverContent(" String" ))
8888 .hover(m5 to m6, hoverContent(" (): Int" ))
8989 .hover(m6 to m7, hoverContent(" Int" ))
@@ -185,8 +185,8 @@ class HoverTest {
185185 |class annot4 extends scala.annotation.Annotation
186186 |class annot5 extends scala.annotation.Annotation
187187 | """ .withSource
188- .hover(m1 to m2, hoverContent(" Int(1 )" ))
189- .hover(m3 to m4, hoverContent(" Int(1 ) @annot1 @annot2 @annot3 @annot4 @annot5" ))
188+ .hover(m1 to m2, hoverContent(" (1 : Int )" ))
189+ .hover(m3 to m4, hoverContent(" (1 : Int ) @annot1 @annot2 @annot3 @annot4 @annot5" ))
190190 }
191191
192192 @ Test def unicodeChar : Unit = {
@@ -207,6 +207,6 @@ class HoverTest {
207207 |val y = ${m1}this ${m2}.x """ .withSource
208208 // The test framework will place the code above in a virtual file called Source0.scala,
209209 // sp the top-level definitions should be enclosed in an object called `Source0$package`.
210- .hover(m1 to m2, hoverContent(" hello.Source0$package.type( hello.Source0$package)" ))
210+ .hover(m1 to m2, hoverContent(" ( hello.Source0$package : hello.Source0$package.type )" ))
211211 }
212212}
0 commit comments