diff options
Diffstat (limited to 'gopls/internal/lsp/analysis/undeclaredname/testdata/src/a/slice.go')
-rw-r--r-- | gopls/internal/lsp/analysis/undeclaredname/testdata/src/a/slice.go | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gopls/internal/lsp/analysis/undeclaredname/testdata/src/a/slice.go b/gopls/internal/lsp/analysis/undeclaredname/testdata/src/a/slice.go new file mode 100644 index 000000000..5cde299ad --- /dev/null +++ b/gopls/internal/lsp/analysis/undeclaredname/testdata/src/a/slice.go @@ -0,0 +1,9 @@ +// 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 slice() { + undefinedSlice([]int{1, 2}) // want "(undeclared name|undefined): undefinedSlice" +} |