diff options
Diffstat (limited to 'gopls/internal/lsp/analysis/undeclaredname/testdata/src/a/literals.go')
-rw-r--r-- | gopls/internal/lsp/analysis/undeclaredname/testdata/src/a/literals.go | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gopls/internal/lsp/analysis/undeclaredname/testdata/src/a/literals.go b/gopls/internal/lsp/analysis/undeclaredname/testdata/src/a/literals.go new file mode 100644 index 000000000..c62174ec9 --- /dev/null +++ b/gopls/internal/lsp/analysis/undeclaredname/testdata/src/a/literals.go @@ -0,0 +1,11 @@ +// 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 + +type T struct{} + +func literals() { + undefinedLiterals("hey compiler", T{}, &T{}) // want "(undeclared name|undefined): undefinedLiterals" +} |