diff options
Diffstat (limited to 'gopls/internal/lsp/analysis/undeclaredname/testdata/src/a/tuple.go')
-rw-r--r-- | gopls/internal/lsp/analysis/undeclaredname/testdata/src/a/tuple.go | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/gopls/internal/lsp/analysis/undeclaredname/testdata/src/a/tuple.go b/gopls/internal/lsp/analysis/undeclaredname/testdata/src/a/tuple.go new file mode 100644 index 000000000..9e91c59c2 --- /dev/null +++ b/gopls/internal/lsp/analysis/undeclaredname/testdata/src/a/tuple.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 tuple() { + undefinedTuple(b()) // want "(undeclared name|undefined): undefinedTuple" +} + +func b() (string, error) { + return "", nil +} |