* convert type of nil value * range staement with key and no value * assign operators misbehave * reset to zero in value spec statements
17 lines
163 B
Go
17 lines
163 B
Go
package main
|
|
|
|
func main() {
|
|
for i := 1; i <= 2; i++ {
|
|
var x, y int
|
|
println(x, y)
|
|
x, y = i, 2*i
|
|
println(x, y)
|
|
}
|
|
}
|
|
|
|
// Output:
|
|
// 0 0
|
|
// 1 2
|
|
// 0 0
|
|
// 2 4
|