Closed griesemer closed 1 day ago
Change https://go.dev/cl/583757 mentions this issue: go/types, types2: add Alias.{TypeParams, SetTypeParams, TypeArgs, Origin}
These are the same methods that types.Named already has, so this seems fine.
Based on the discussion above, this proposal seems like a likely accept. — rsc for the proposal review group
The proposal is https://github.com/golang/go/issues/67143#issue-2276112912.
No change in consensus, so accepted. 🎉 This issue now tracks the work of implementing the proposal. — rsc for the proposal review group
The proposal is https://github.com/golang/go/issues/67143#issue-2276112912.
For the purposes of generic Alias types we propose the following additional API. As with other generic types, instances are created with types.Instantiate. These methods match the corresponding methods for Named types.