package main
import "math"
import "fmt"
const (
a = iota
b
c => math.Pi
d
)
func main() {
fmt.Println(a, b, c, d)
}
prints
It probably shouldn't be allowed in the first place. Certainly the output is wrong (iota should be incremented with each semicolon).
prints
It probably shouldn't be allowed in the first place. Certainly the output is wrong (iota should be incremented with each semicolon).