Closed lindebergue closed 1 year ago
Hmm, yeah I guess it's not 'generics ready'. I wonder if you fancy submitting a failing test in a PR?
Hey, I actually ran into the same issue. Was just curious if there was any movement on this?
i read the changelog of 0.3.0 that said it got generics support. tested it today. still running into this problem.
i created a failing test through #177
When mocking a method with a generic type, moq ignores package names of type arguments.
This works:
But this does not:
The generated code instantiates
Bar
asBar[Type]
instead ofBar[pkg.Type]
, failing to compile:I've tried workarounds like dot imports and type aliases, but got the same results. If
Bar
type is a built-in likemap
, it works fine. moq versionv0.2.7
.