aboutsummaryrefslogtreecommitdiff
path: root/gopls/internal/lsp/testdata/extract/extract_function/extract_return_basic_nonnested.go.golden
blob: 19e48da015c838645bb5c73ea7bfded393f751a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
-- functionextraction_extract_return_basic_nonnested_4_2 --
package extract

func _() bool {
	//@mark(exSt13, "x")
	return newFunction() //@mark(exEn13, "false")
	//@extractfunc(exSt13, exEn13)
}

func newFunction() bool {
	x := 1
	if x == 0 {
		return true
	}
	return false
}