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/99979bab-ebad-47c3-ab97-5503ef9921b1n%40googlegroups.com.

Reply via email to