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 use Unalias 
<https://pkg.go.dev/go/types#Unalias> to get the underlying type.
On Wednesday, August 13, 2025 at 10:12:46 PM UTC-7 Bob Glickstein wrote:

> 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.Check <https://pkg.go.dev/go/types#Config.Check> sense) 
> as a *types.Alias <https://pkg.go.dev/go/types#Alias>. Previously it 
> type-checked as a *types.Interface <https://pkg.go.dev/go/types#Interface>. 
> This caused a test breakage when updating Modver 
> <https://github.com/bobg/modver#readme>, which I have fixed here 
> <https://github.com/bobg/modver/pull/35>.
>
> Not sure whether this rises to the level of a bug report. It is at least a 
> public-service announcement.
>
> Cheers,
> - Bob
>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion visit 
https://groups.google.com/d/msgid/golang-nuts/0c1df6d4-24d5-45be-9c1d-1556b3f32d3en%40googlegroups.com.

Reply via email to