aboutsummaryrefslogtreecommitdiff
path: root/gopls/internal/lsp/testdata/extract/extract_function/extract_return_complex.go
blob: 605c5ec2e32a97c0e8539fb32afc7ae3d0f90e76 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package extract

import "fmt"

func _() (int, string, error) {
	x := 1
	y := "hello"
	z := "bye" //@mark(exSt3, "z")
	if y == z {
		return x, y, fmt.Errorf("same")
	} else {
		z = "hi"
		return x, z, nil
	} //@mark(exEn3, "}")
	return x, z, nil
	//@extractfunc(exSt3, exEn3)
}