aboutsummaryrefslogtreecommitdiff
path: root/gopls/internal/lsp/testdata/extract/extract_function/extract_smart_return.go
diff options
context:
space:
mode:
Diffstat (limited to 'gopls/internal/lsp/testdata/extract/extract_function/extract_smart_return.go')
-rw-r--r--gopls/internal/lsp/testdata/extract/extract_function/extract_smart_return.go11
1 files changed, 11 insertions, 0 deletions
diff --git a/gopls/internal/lsp/testdata/extract/extract_function/extract_smart_return.go b/gopls/internal/lsp/testdata/extract/extract_function/extract_smart_return.go
new file mode 100644
index 000000000..264d680e2
--- /dev/null
+++ b/gopls/internal/lsp/testdata/extract/extract_function/extract_smart_return.go
@@ -0,0 +1,11 @@
+package extract
+
+func _() {
+ var b []int
+ var a int
+ a = 2 //@mark(exSt7, "a")
+ b = []int{}
+ b = append(b, a) //@mark(exEn7, ")")
+ b[0] = 1
+ //@extractfunc(exSt7, exEn7)
+}