Debian Codegraph @

gopls/internal/test/marker/testdata/hover/issues.txt

raw
1 This test verifies fixes for various issues reported for hover.
2
3 -- go.mod --
4 module golang.org/lsptests
5
6 -- issue64239/p.go --
7 package issue64239
8
9 // golang/go#64239: hover fails for objects in the unsafe package.
10
11 import "unsafe"
12
13 var _ = unsafe.Sizeof(struct{}{}) //@hover("Sizeof", "Sizeof", "`Sizeof` on pkg.go.dev")
14
15 -- issue64237/p.go --
16 package issue64237
17
18 // golang/go#64237: hover panics for broken imports.
19
20 import "golang.org/lsptests/nonexistant" //@diag("\"golang", re"could not import")
21
22 var _ = nonexistant.Value //@hovererr("nonexistant", "no package data")
23
24 -- issue69362/p.go --
25 package issue69362
26
27 // golang/go#69362: hover panics over undefined implicits.
28
29 func _() {
30 switch x := y.(type) { //@diag("y", re"undefined"), hover("x", "x", "")
31 case int:
32 _ = x
33 }
34 }