-
Notifications
You must be signed in to change notification settings - Fork 172
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Protocol with primary associated type cannot be mocked #491
Comments
Thanks for reporting this and providing the source as well as generated code for both versions. The fix itself shouldn't be difficult, but I'll see what I can do about the Swift 6 warning as well. |
I've added your test sample to the unit tests, so this error shouldn't occur again. 🙂 Please try out 2.0.2 to see if it's fixed your issue completely. Furthermore this issue made me prod the |
Brilliant. Compiles without warnings and my unit tests pass. Thanks for the quick turnaround. |
Glad to hear that. 🙂 Closing issue then. |
Using 2.0.1 I am trying to mock the following file.
1.10 produces the valid mock
2.0.1 produces invalid code
Note the 1.10.0 code has a Swift 6 warning
but for now it is functional.
The 2.0.1 code with
Output, Output:Equatable
does not compileThe text was updated successfully, but these errors were encountered: