Closed fummicc1 closed 1 year ago
@sidepelican
Thank you for reviewing!
This will not work in nested tupled protocol but maybe enough with this implementation in majour usecase.
I wasn't aware of this case, you mean protocol A: (B & C)
was not correctly parsed, right?
I think this problem can be fixed at https://github.com/uber/mockolo/pull/217/commits/6253922b620d2362ac0c6369b85b5fcf698c376a . What do you think of it?
Overview
When use
&
keyword to conform to multiple protocols, mockolo only picks up the first protocol.This issue is already mentioned in #170
SecondSwiftProtocol
are not implemented.)Solution
checking if inheritedType is
CompositionType
or not.