.gitignore added
[dotfiles/.git] / .config / coc / extensions / coc-go-data / tools / pkg / mod / golang.org / x / tools@v0.1.0 / internal / lsp / testdata / extract / extract_function / extract_return_complex.go.golden
diff --git a/.config/coc/extensions/coc-go-data/tools/pkg/mod/golang.org/x/tools@v0.1.0/internal/lsp/testdata/extract/extract_function/extract_return_complex.go.golden b/.config/coc/extensions/coc-go-data/tools/pkg/mod/golang.org/x/tools@v0.1.0/internal/lsp/testdata/extract/extract_function/extract_return_complex.go.golden
new file mode 100644 (file)
index 0000000..2fee5fb
--- /dev/null
@@ -0,0 +1,27 @@
+-- functionextraction_extract_return_complex_8_2 --
+package extract
+
+import "fmt"
+
+func _() (int, string, error) {
+       x := 1
+       y := "hello"
+       z, cond0, ret0, ret1, ret2 := fn0(y, x)
+       if cond0 {
+               return ret0, ret1, ret2
+       } //@mark(exEn3, "}")
+       return x, z, nil
+       //@extractfunc(exSt3, exEn3)
+}
+
+func fn0(y string, x int) (string, bool, int, string, error) {
+       z := "bye"
+       if y == z {
+               return "", true, x, y, fmt.Errorf("same")
+       } else {
+               z = "hi"
+               return "", true, x, z, nil
+       }
+       return z, false, 0, "", nil
+}
+