rjeczalik / interfaces

Code generation tools for Go.
MIT License
420 stars 31 forks source link

Generating interfaces for functions that use generics is broken #41

Open stgraham2000 opened 1 year ago

stgraham2000 commented 1 year ago

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.