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
Is your feature request related to a problem? Please describe.
A spy is currently unable to be generated for init requirements. Any protocol with an init requirement will not synthesize correctly.
Describe the solution you'd like
protocolThing{init(time:Double)}
Should generate:
classThingSpy:Thing{init(){}varinitTimeReceivedTime:Double!requiredinit(time:Double){
initTimeReceivedTime = time
}}
Describe alternatives you've considered
N/A
Additional context
A default init without any parameters should still be generated.
Only 1 value needs to be captured from the init requirements, because the object can only be created once.
init protocol requirements must be prefixed with the required keyword.
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
A spy is currently unable to be generated for
init
requirements. Any protocol with aninit
requirement will not synthesize correctly.Describe the solution you'd like
Should generate:
Describe alternatives you've considered
N/A
Additional context
init
without any parameters should still be generated.init
protocol requirements must be prefixed with therequired
keyword.The text was updated successfully, but these errors were encountered: