package main func f(i int) int { var j int if k := 666; i == 0 { j = 888 } else if i == 1 { j = 1 } else if i == 2 { j = k } else { j = k + 4 } return j } func main() { assert(f(0) == 888) assert(f(1) == 1) assert(f(2) == 666) assert(f(3) == 670) }