You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
package main
import "fmt"
var (
a = iota
b = iota
c = iota
)
func main() {
fmt.Println(a, b, c)
}
// Go compiler version: b84e614e2516 weekly/weekly.2011-03-28
// Compiler successfully compiles this code and the resulting binary prints:
// 0 0 0
//
// Is it a bug? or an undocumented compiler extension?