reflect: Value.Seq iteration value types not matching the type of given int types #71905
Labels
BugReport
Issues describing a possible bug in the Go implementation.
compiler/runtime
Issues related to the Go compiler and/or runtime.
FixPending
Issues that have a fix which has not yet been reviewed or submitted.
Milestone
Go version
go version go1.24.0 darwin/amd64
Output of
go env
in your module/workspace:What did you do?
Ranged over the result of calling
Seq
on the reflect value of a named integer type.What did you see happen?
The
reflect.Value
s produced by the iteration having the type of the given value's underlying type.What did you expect to see?
From the Go 1.23 release notes:
Thus, I expected the produced
Value
s to be of the same type as the given integer, asfor range
behaves:Playground example
The text was updated successfully, but these errors were encountered: