In the program above, foo and bar compile but baz does not.  It fails with 
the message: "invalid operation: 1 << b (shift of type float64)".  This 
seems to be wrong on the surface, since the order of operations should 
imply the shift takes precedence.  In the bar function, using a temporary 
variable without specifying the type shows that the compiler does know what 
to do.   What am I missing?

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 
For more options, visit

Reply via email to