diff options
Diffstat (limited to 'gopls/internal/lsp/testdata/references/other/other.go')
-rw-r--r-- | gopls/internal/lsp/testdata/references/other/other.go | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/gopls/internal/lsp/testdata/references/other/other.go b/gopls/internal/lsp/testdata/references/other/other.go new file mode 100644 index 000000000..daac1a028 --- /dev/null +++ b/gopls/internal/lsp/testdata/references/other/other.go @@ -0,0 +1,19 @@ +package other + +import ( + references "golang.org/lsptests/references" +) + +func GetXes() []references.X { + return []references.X{ + { + Y: 1, //@mark(GetXesY, "Y"),refs("Y", typeXY, GetXesY, anotherXY) + }, + } +} + +func _() { + references.Q = "hello" //@mark(assignExpQ, "Q") + bob := func(_ string) {} + bob(references.Q) //@mark(bobExpQ, "Q") +} |