diff options
Diffstat (limited to 'gopls/internal/lsp/testdata/extract/extract_function/extract_redefine.go')
-rw-r--r-- | gopls/internal/lsp/testdata/extract/extract_function/extract_redefine.go | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gopls/internal/lsp/testdata/extract/extract_function/extract_redefine.go b/gopls/internal/lsp/testdata/extract/extract_function/extract_redefine.go new file mode 100644 index 000000000..604f4757c --- /dev/null +++ b/gopls/internal/lsp/testdata/extract/extract_function/extract_redefine.go @@ -0,0 +1,11 @@ +package extract + +import "strconv" + +func _() { + i, err := strconv.Atoi("1") + u, err := strconv.Atoi("2") //@extractfunc("u", ")") + if i == u || err == nil { + return + } +} |