Closed pablocornejo closed 1 year ago
@pablocornejo Thank you for sharing! If you have a solution, feel free to send a PR.😄 I will start to investigate this issue.
Hello, I have fixed this issue in #231 , so let me close this issue. please tell me if there is something wrong. :)
Hi, I've found a bug where when mocking a protocol that has multiple init requirements that contain a parameter with the same name, the generated underlying var declaration gets duplicated.
For example, generating a mock for:
Results in:
...which fails to compile:
error: invalid redeclaration of '_param'
A similar thing happens if using different types for param:
Results in:
...
error: invalid redeclaration of '_param'