-- functionextraction_extract_return_basic_5_2 -- | |
package extract | |
func _() bool { | |
x := 1 | |
//@mark(exSt2, "if") | |
shouldReturn, returnValue := newFunction(x) | |
if shouldReturn { | |
return returnValue | |
} //@mark(exEn2, "}") | |
return false | |
//@extractfunc(exSt2, exEn2) | |
} | |
func newFunction(x int) (bool, bool) { | |
if x == 0 { | |
return true, true | |
} | |
return false, false | |
} | |