Weird. It simplifies to this: https://play.golang.org/p/OsOhRMC6kBu
On Thursday, 3 June 2021 at 10:08:22 UTC+1 Jamil Djadala wrote: > > https://groups.google.com/g/golang-nuts > > package main > > import ( > "fmt" > ) > > func main() { > const aa int = 0 > var a int > fmt.Println(float64(1<<aa), a) > fmt.Println(float64(1<<a), a) // ./prog.go:11:21: invalid operation: 1 > << a (shift of type float64) > } > ./prog.go:11:21: invalid operation: 1 << a (shift of type float64) > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/87ee9f5f-6db2-48e8-86cc-de0b88511a65n%40googlegroups.com.