I have protocols:
public protocol DCUUID {
init(string: String)
var uuidString: String { get }
}
public protocol DCPipe {
var uuid: DCUUID { get }
}
Then I try to use it:
extension CBUUID: DCUUID {}
extension CBAttribute: DCPipe {}
The compiler says that CBAttribute does not conform DCPipe.
CBAttribute has property
var uuid: CBUUID { get }
CBUUID is DCUUID. So CBAttribute has property uuid
that return DCUUID.
What is wrong?