cmd/compile: compiler does not reject overflowing type-parameter conversion #49247
Labels
FrozenDueToAge
NeedsFix
The path to resolution is known, but the work has not been done.
release-blocker
Milestone
According to my reading of the type parameters proposal, specifically this section:
This program should be rejected by the compiler:
but it isn't, and it prints
0
. IfT
is manually replaced withint8
, the compiler errors with:cc @griesemer @ianlancetaylor
The text was updated successfully, but these errors were encountered: