diff options
Diffstat (limited to 'gopls/internal/lsp/analysis/simplifyrange/testdata/src/a/a.go')
-rw-r--r-- | gopls/internal/lsp/analysis/simplifyrange/testdata/src/a/a.go | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/gopls/internal/lsp/analysis/simplifyrange/testdata/src/a/a.go b/gopls/internal/lsp/analysis/simplifyrange/testdata/src/a/a.go new file mode 100644 index 000000000..49face1e9 --- /dev/null +++ b/gopls/internal/lsp/analysis/simplifyrange/testdata/src/a/a.go @@ -0,0 +1,16 @@ +// Copyright 2020 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 testdata + +import "log" + +func m() { + maps := make(map[string]string) + for k, _ := range maps { // want "simplify range expression" + log.Println(k) + } + for _ = range maps { // want "simplify range expression" + } +} |