Trouble with protocols #188
Unanswered
NickNoble-Slalom
asked this question in
Q&A
Replies: 1 comment 2 replies
-
If it's just a protocol then just do |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a protocol called
Routable
and a class implementation calledRouter
. I would like to register this in myContainer
, then overwrite it for unit testing. This is what I have so far:And in my unit tests:
with this error:
Cannot convert value of type 'MockRouter' to closure result type 'some Routable'
What am I doing wrong here?
Beta Was this translation helpful? Give feedback.
All reactions