Yes, that is what is happening. -rob
On Wed, Jun 22, 2016 at 10:44 AM, Manlio Perillo <manlio.peri...@gmail.com> wrote: > Hi. > > With this example: > https://play.golang.org/p/OTyO37vYck > > the compiler reports that the Huge constant is invalid, but it also > reports a division by zero in the Huge/Huge expression. > It should probably not report the error. > The error is also reported by Go 1.6.2. > > It seems that the compiler is assuming that Huge is a constant with > default type of int, but since the value is invalid it is set to the > default value of 0. > > > Thanks > Manlio > > -- > 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. > For more options, visit https://groups.google.com/d/optout. > -- 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. For more options, visit https://groups.google.com/d/optout.