On Thu, Jun 3, 2021 at 11:21 AM Brian Candler <b.cand...@pobox.com> wrote:
>
> Weird.  It simplifies to this: https://play.golang.org/p/OsOhRMC6kBu

I think this case is WAI.

>From https://golang.org/ref/spec#Operators

" If the left operand of a non-constant shift expression is an untyped
constant, it is first implicitly converted to the type it would assume
if the shift expression were replaced by its left operand alone."

The OP case is strange in that the constness of the RHS operator
somehow changes the interpretation of the above quotation
specification, but I cannot find that it should.

-- 
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/CAA40n-VQ544KsSc4vOMXMGRLHdwF17rSpyWFyTq%2Bjc40PiwWxg%40mail.gmail.com.

Reply via email to