diff options
Diffstat (limited to 'gopls/internal/lsp/analysis/undeclaredname/testdata/src/a/channels.go')
-rw-r--r-- | gopls/internal/lsp/analysis/undeclaredname/testdata/src/a/channels.go | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/gopls/internal/lsp/analysis/undeclaredname/testdata/src/a/channels.go b/gopls/internal/lsp/analysis/undeclaredname/testdata/src/a/channels.go new file mode 100644 index 000000000..76c7ba685 --- /dev/null +++ b/gopls/internal/lsp/analysis/undeclaredname/testdata/src/a/channels.go @@ -0,0 +1,13 @@ +// Copyright 2021 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package undeclared + +func channels(s string) { + undefinedChannels(c()) // want "(undeclared name|undefined): undefinedChannels" +} + +func c() (<-chan string, chan string) { + return make(<-chan string), make(chan string) +} |