You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have init method in my protocol. I am getting the below error when sourcery generates the code. Keyword 'init' cannot be used as an identifier here. If this name is unavoidable, use backticks to escape it
Hello @mahabaleshwarhnr !
init cannot be declared in an extension Mock ... { ... }. #127 will fix that.
You should create an extension by yourself as bellow:
I have init method in my protocol. I am getting the below error when sourcery generates the code.
Keyword 'init' cannot be used as an identifier here. If this name is unavoidable, use backticks to escape it
📝 For Example
Sourcery generated the code as below:
📝 What is the Question?
How to generate the mock when protocol have init method?
The text was updated successfully, but these errors were encountered: