Re: [swift-users] Casting tuples to protocols always fails (and the compiler should know)

2016-10-11 Thread Sebastian Hagedorn via swift-users
Thanks for clarification. I’ve created a bug report: https://bugs.swift.org/browse/SR-2915 > On 10 Oct 2016, at 19:57, Joe Groff wrote: > > >> On Oct 10, 2016, at 10:53 AM, Sebastian Hagedorn >> wrote: >> >> “Forever” is pretty long-term ;) >> >> Since it is currently *not* possible for t

Re: [swift-users] Casting tuples to protocols always fails (and the compiler should know)

2016-10-10 Thread Joe Groff via swift-users
> On Oct 10, 2016, at 10:53 AM, Sebastian Hagedorn > wrote: > > “Forever” is pretty long-term ;) > > Since it is currently *not* possible for tuples to conform to protocols, > isn’t it worth a warning (if my assumption that this would be easy to > implement is correct), even if it may be obs

Re: [swift-users] Casting tuples to protocols always fails (and the compiler should know)

2016-10-10 Thread Sebastian Hagedorn via swift-users
“Forever” is pretty long-term ;) Since it is currently *not* possible for tuples to conform to protocols, isn’t it worth a warning (if my assumption that this would be easy to implement is correct), even if it may be obsolete in the future? Thanks for your reply, Sebastian > On 10 Oct 2016, a

Re: [swift-users] Casting tuples to protocols always fails (and the compiler should know)

2016-10-10 Thread Joe Groff via swift-users
> On Oct 10, 2016, at 8:20 AM, Sebastian Hagedorn via swift-users > wrote: > > We encountered a very surprising behaviour in one of our apps, and believe > it’s a bug/missing warning in the Swift compilter, but it would be great if > someone could confirm we’re not missing a piece before I fi

[swift-users] Casting tuples to protocols always fails (and the compiler should know)

2016-10-10 Thread Sebastian Hagedorn via swift-users
We encountered a very surprising behaviour in one of our apps, and believe it’s a bug/missing warning in the Swift compilter, but it would be great if someone could confirm we’re not missing a piece before I file a bug report. This snippet reproduces the issue: protocol MyProto { var title: