You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to golang-nuts
I just discovered the hard way (where hard == a few hours of debugging) that, beginning in Go 1.25, "any" type-checks (in the"go/types".Config.Checksense) as a*types.Alias. Previously it type-checked as a*types.Interface. This caused a test breakage when updatingModver, which I have fixedhere.
Not sure whether this rises to the level of a bug report. It is at least a public-service announcement.
Cheers,
- Bob
David Harkness
unread,
Aug 20, 2025, 2:55:35 PMAug 20
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to golang-nuts
According to the types.Alias
documentation, this was changed because Go 1.24 added the ability for a type alias to have generic arguments, e.g. type Set[K comparable] = map[K]bool. You can useUnaliasto get the underlying type.