blob: cfebcc472c95b9e20275a854b60dcb060c33eb02 [file] [log] [blame]
-- Pparam-hoverdef --
```go
type parameter P interface{~int|string}
```
-- Pvar-hoverdef --
```go
type parameter P interface{~int|string}
```
-- ValueQfield-hoverdef --
```go
field Q int
```
\@mark\(ValueQfield, \"Q\"\),hoverdef\(\"Q\", ValueQfield\)
[`(hover.Value).Q` on pkg.go.dev](https://pkg.go.dev/golang.org/x/tools/internal/lsp/godef/hover_generics?utm_source=gopls#Value.Q)
-- ValueTdecl-hoverdef --
```go
type parameter T any
```
-- ValueTparam-hoverdef --
```go
type parameter T any
```
-- value-hoverdef --
```go
type value[T any] struct {
val T //@mark(valueTparam, "T"),hoverdef("T", valueTparam)
Q int //@mark(valueQfield, "Q"),hoverdef("Q", valueQfield)
}
```
-- valueQfield-hoverdef --
```go
field Q int
```
\@mark\(valueQfield, \"Q\"\),hoverdef\(\"Q\", valueQfield\)
-- valueTdecl-hoverdef --
```go
type parameter T any
```
-- valueTparam-hoverdef --
```go
type parameter T any
```