Debian Codegraph @

gopls/internal/test/marker/testdata/token/issue66809.txt

raw
1 This is a regression test for #66809 (missing modifiers for
2 declarations of function-type variables).
3
4 -- settings.json --
5 {
6 "semanticTokens": true
7 }
8
9 -- main.go --
10 package main
11
12 func main() {
13 foo := func(x string) string { return x } //@token("foo", "variable", "definition signature")
14 _ = foo //@token("foo", "variable", "signature")
15 foo("hello") //@token("foo", "variable", "signature")
16 }