aboutsummaryrefslogtreecommitdiff
path: root/gopls/internal/lsp/testdata/references/another/another.go
diff options
context:
space:
mode:
Diffstat (limited to 'gopls/internal/lsp/testdata/references/another/another.go')
-rw-r--r--gopls/internal/lsp/testdata/references/another/another.go13
1 files changed, 13 insertions, 0 deletions
diff --git a/gopls/internal/lsp/testdata/references/another/another.go b/gopls/internal/lsp/testdata/references/another/another.go
new file mode 100644
index 000000000..20e3ebca1
--- /dev/null
+++ b/gopls/internal/lsp/testdata/references/another/another.go
@@ -0,0 +1,13 @@
+// Package another has another type.
+package another
+
+import (
+ other "golang.org/lsptests/references/other"
+)
+
+func _() {
+ xes := other.GetXes()
+ for _, x := range xes { //@mark(defX, "x")
+ _ = x.Y //@mark(useX, "x"),mark(anotherXY, "Y"),refs("Y", typeXY, anotherXY, GetXesY),refs(".", defX, useX),refs("x", defX, useX)
+ }
+}