What I usually do here is:
typealias CProtocol = A & B
protocol C: CProtocol { } // or just A & B directly, I think
extension C {}

So it’s a bit silly to me.


Jon


> On Jun 19, 2017, at 3:44 PM, Slava Pestov via swift-users 
> <swift-users@swift.org> wrote:
> 
> Hi Steven,
> 
>> On Jun 19, 2017, at 11:44 AM, Steven Brunwasser via swift-users 
>> <swift-users@swift.org <mailto:swift-users@swift.org>> wrote:
>> 
>> Is this error intentional, or a bug?
> 
> It’s intentional. We could add support for this as an extra bit of sugar, but 
> note that
> 
>> Since extension A where Self: B is the same as extension B where Self: A,
> 
> This is not quite true.
> 
> Slava
> 
> _______________________________________________
> swift-users mailing list
> swift-users@swift.org
> https://lists.swift.org/mailman/listinfo/swift-users

_______________________________________________
swift-users mailing list
swift-users@swift.org
https://lists.swift.org/mailman/listinfo/swift-users

Reply via email to