go/types: issue with using const with implicit unint64 #66705
Labels
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
Go version
go version go1.22.2 darwin/amd64
Output of
go env
in your module/workspace:What did you do?
uint64
but do not explicitly state that it isuint64
: https://go.dev/play/p/hB59P8SZ0NdWhat did you see happen?
https://go.dev/play/p/hB59P8SZ0Nd does not compile:
What did you expect to see?
I expected the code to compile and to see the test output of:
If you do not use the constant value directly, the code compiles, and the business logic works fine: https://go.dev/play/p/gTNfesGnMyj
The text was updated successfully, but these errors were encountered: