aboutsummaryrefslogtreecommitdiff
path: root/gopls/internal/lsp/testdata/missingfunction/channels.go
diff options
context:
space:
mode:
Diffstat (limited to 'gopls/internal/lsp/testdata/missingfunction/channels.go')
-rw-r--r--gopls/internal/lsp/testdata/missingfunction/channels.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/gopls/internal/lsp/testdata/missingfunction/channels.go b/gopls/internal/lsp/testdata/missingfunction/channels.go
new file mode 100644
index 000000000..303770cd7
--- /dev/null
+++ b/gopls/internal/lsp/testdata/missingfunction/channels.go
@@ -0,0 +1,9 @@
+package missingfunction
+
+func channels(s string) {
+ undefinedChannels(c()) //@suggestedfix("undefinedChannels", "quickfix", "")
+}
+
+func c() (<-chan string, chan string) {
+ return make(<-chan string), make(chan string)
+}