Hi! I noticed a strange behavior and wanted to see if this is intended behavior and why this behavior is present or if this is a bug.
// Compiles without error x := int(-65) fmt.Println(byte(x)) // Gives the compile time error: "constant -65 overflows byte" fmt.Println(byte(int(-65))) Here is the above example on playground: https://play.golang.org/p/2Ct59w9s4ng Cheers! /7i -- 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.