aboutsummaryrefslogtreecommitdiff
path: root/gopls/internal/lsp/testdata/workspacesymbol/issue44806.go
diff options
context:
space:
mode:
Diffstat (limited to 'gopls/internal/lsp/testdata/workspacesymbol/issue44806.go')
-rw-r--r--gopls/internal/lsp/testdata/workspacesymbol/issue44806.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/gopls/internal/lsp/testdata/workspacesymbol/issue44806.go b/gopls/internal/lsp/testdata/workspacesymbol/issue44806.go
new file mode 100644
index 000000000..6a6e03a5f
--- /dev/null
+++ b/gopls/internal/lsp/testdata/workspacesymbol/issue44806.go
@@ -0,0 +1,10 @@
+package main
+
+type T struct{}
+
+// We should accept all valid receiver syntax when scanning symbols.
+func (*(T)) m1() {}
+func (*T) m2() {}
+func (T) m3() {}
+func ((T)) m4() {}
+func ((*T)) m5() {}