/ go Public
cmd/compile: incorrect type error after "type int64 int32" #38882
Issues related to the Go compiler and/or runtime.
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
What version of Go are you using (
What operating system and processor architecture are you using (
What did you do?
What did you expect to see?
I expect to see "
constant 100000000000 overflows main.int64".
Either that or the line "
type int64 int32" shouldn't compile.
What did you see instead?
I see "
constant 100000000000 overflows int64". That's incorrect because 100000000000 does not overflow int64. It overflows main.int64. Those are two different types.
The text was updated successfully, but these errors were encountered: