@@ -46,24 +46,24 @@ class HoverTest {
46
46
| ${m1}val x = ${m2}8 $m3; ${m4}x $m5
47
47
|} """ .withSource
48
48
.hover(m1 to m2, hoverContent(" Int" ))
49
- .hover(m2 to m3, hoverContent(" Int(8 )" ))
49
+ .hover(m2 to m3, hoverContent(" (8 : Int )" ))
50
50
.hover(m4 to m5, hoverContent(" Int" ))
51
51
}
52
52
53
53
@ Test def hoverOnValDef1 : Unit = {
54
54
code """ class Foo {
55
55
| ${m1}final val x = 8 $m2; ${m3}x $m4
56
56
|} """ .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 )" ))
59
59
}
60
60
61
61
@ Test def hoverOnDefDef0 : Unit = {
62
62
code """ class Foo {
63
63
| ${m1}def x = ${m2}8 $m3; ${m4}x $m5
64
64
|} """ .withSource
65
65
.hover(m1 to m2, hoverContent(" Int" ))
66
- .hover(m2 to m3, hoverContent(" Int(8 )" ))
66
+ .hover(m2 to m3, hoverContent(" (8 : Int )" ))
67
67
.hover(m4 to m5, hoverContent(" Int" ))
68
68
}
69
69
@@ -83,7 +83,7 @@ class HoverTest {
83
83
| ${m5}y( $m6) $m7
84
84
|}
85
85
""" .withSource
86
- .hover(m1 to m2, hoverContent(" String (\" abc\" ) " ))
86
+ .hover(m1 to m2, hoverContent(" (\" abc\" : String) " ))
87
87
.hover(m3 to m4, hoverContent(" String" ))
88
88
.hover(m5 to m6, hoverContent(" (): Int" ))
89
89
.hover(m6 to m7, hoverContent(" Int" ))
@@ -185,8 +185,8 @@ class HoverTest {
185
185
|class annot4 extends scala.annotation.Annotation
186
186
|class annot5 extends scala.annotation.Annotation
187
187
| """ .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" ))
190
190
}
191
191
192
192
@ Test def unicodeChar : Unit = {
@@ -207,6 +207,6 @@ class HoverTest {
207
207
|val y = ${m1}this ${m2}.x """ .withSource
208
208
// The test framework will place the code above in a virtual file called Source0.scala,
209
209
// 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 )" ))
211
211
}
212
212
}
0 commit comments