interfaces icon indicating copy to clipboard operation
interfaces copied to clipboard

Generating interfaces for functions that use generics is broken

Open stgraham2000 opened this issue 1 year ago • 0 comments

If you have a function like:

func (a* MyStruct) Fun1(arg Generic[string])

The resultant interface method will be:

func Fun1(arg Generic)

It seems like the type args used to instantiate the generic are dropped when the interface parameters and results are generated.

stgraham2000 avatar Jun 21 '23 18:06 stgraham2000