aboutsummaryrefslogtreecommitdiff
path: root/gopls/internal/lsp/testdata/implementation/other/other.go
diff options
context:
space:
mode:
Diffstat (limited to 'gopls/internal/lsp/testdata/implementation/other/other.go')
-rw-r--r--gopls/internal/lsp/testdata/implementation/other/other.go27
1 files changed, 27 insertions, 0 deletions
diff --git a/gopls/internal/lsp/testdata/implementation/other/other.go b/gopls/internal/lsp/testdata/implementation/other/other.go
new file mode 100644
index 000000000..aff825e91
--- /dev/null
+++ b/gopls/internal/lsp/testdata/implementation/other/other.go
@@ -0,0 +1,27 @@
+package other
+
+type ImpP struct{} //@mark(OtherImpP, "ImpP")
+
+func (*ImpP) Laugh() { //@mark(OtherLaughP, "Laugh")
+}
+
+type ImpS struct{} //@mark(OtherImpS, "ImpS")
+
+func (ImpS) Laugh() { //@mark(OtherLaughS, "Laugh")
+}
+
+type ImpI interface { //@mark(OtherLaugher, "ImpI")
+ Laugh() //@mark(OtherLaugh, "Laugh")
+}
+
+type Foo struct { //@implementations("Foo", Joker)
+}
+
+func (Foo) Joke() { //@mark(ImpJoker, "Joke"),implementations("Joke", Joke)
+}
+
+type CryType int
+
+type Cryer interface { //@Cryer
+ Cry(CryType) //@Cry,implementations("Cry", CryImpl)
+}