问题
Hello my goal here is to extend (in swift 3) a protocol I have in a framework to conform to another Protocol
protocol SomeProtocol {}
protocol SomeOtherProtocol {}
extension SomeOtherProtocol: SomeProtocol {}
The problem here is that I get an error: "Extension of protocol 'SomeOtherProtocol' cannot have an inheritance clause" If this is not possible how do I achieve such thing or what's the "swift way"?
来源:https://stackoverflow.com/questions/44425503/extending-existing-protocol-to-conform-to-another-protocol