.gitignore added
[dotfiles/.git] / .config / coc / extensions / coc-go-data / tools / pkg / mod / golang.org / x / tools@v0.1.1-0.20210319172145-bda8f5cee399 / internal / lsp / testdata / extract / extract_function / extract_return_basic.go.golden
diff --git a/.config/coc/extensions/coc-go-data/tools/pkg/mod/golang.org/x/tools@v0.1.1-0.20210319172145-bda8f5cee399/internal/lsp/testdata/extract/extract_function/extract_return_basic.go.golden b/.config/coc/extensions/coc-go-data/tools/pkg/mod/golang.org/x/tools@v0.1.1-0.20210319172145-bda8f5cee399/internal/lsp/testdata/extract/extract_function/extract_return_basic.go.golden
new file mode 100644 (file)
index 0000000..b1a27b7
--- /dev/null
@@ -0,0 +1,20 @@
+-- functionextraction_extract_return_basic_5_2 --
+package extract
+
+func _() bool {
+       x := 1
+       cond0, ret0 := fn0(x)
+       if cond0 {
+               return ret0
+       } //@mark(exEn2, "}")
+       return false
+       //@extractfunc(exSt2, exEn2)
+}
+
+func fn0(x int) (bool, bool) {
+       if x == 0 {
+               return true, true
+       }
+       return false, false
+}
+