[swift-users] Extensions on Typealiased Existential Protocols

Slava Pestov spestov at apple.com
Mon Jun 19 14:44:07 CDT 2017


Hi Steven,

> On Jun 19, 2017, at 11:44 AM, Steven Brunwasser via swift-users <swift-users at 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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-users/attachments/20170619/6160cd19/attachment.html>


More information about the swift-users mailing list