blob: 1254851ad14ef03c80d0ea7262d51a07ca67f6e8 [file] [log] [blame]
Basic tests of textDocument/documentSymbols with generics.
-- symbol.go --
//@symbol(want)
package main
type T[P any] struct {
F P
}
type Constraint interface {
~int | struct{ int }
interface{ M() }
}
-- @want --
Constraint "interface{...}" +3 lines
Constraint.interface{...} ""
Constraint.interface{...}.M "func()"
Constraint.~int | struct{int} ""
T "struct{...}" +2 lines
T.F "P"