Support for type parameters was added here, by calling .TypeParams().At(i)
on Named types and Signature types. Receiver type parameters are available on Signature types as .RecvTypeParams().At(i)
. So I think it should be technically quite simple.
Comment From: gopherbot
Change https://go.dev/cl/593316 mentions this issue: go/types/objectpath: support Signature.RecvTypeParams
Comment From: owen-mc
Wow, what a quick response. Thank you very much. Do you have any idea roughly when this will be in a released version?
Comment From: adonovan
Do you have any idea roughly when this will be in a released version?
We tag a release of x/tools the first week of each month (it's automated), so it shouldn't be more than a couple of weeks.
(If you encountered this while using gopls, this CL unfortunately just missed the window of the gopls/v0.16.0 release, so it will be rather longer in that case, as gopls releases are approximately quarterly; but we could create a patch release if this was the cause if a significant user-visible gopls bug.)