Re: [swift-users] Compiler crashes while resolving generics constraints

2016-12-26 Thread Slava Pestov via swift-users
The Swift 3 crash is definitely a compiler bug — the compiler should never crash, even with invalid code. However it looks like we fixed it already, and the latest snapshot produces a compile error instead. Let us know if you need any more help! Slava > On Dec 26, 2016, at 2:56 PM, Игорь Никит

Re: [swift-users] Compiler crashes while resolving generics constraints

2016-12-26 Thread Игорь Никитин via swift-users
Now I’m not sure that it’s a compiler bug. Maybe I not provide enough info of the type system or whatever else Thanks for the help! > 26 дек. 2016 г., в 22:49, Slava Pestov via swift-users > написал(а): > >> >> On Dec 26, 2016, at 2:30 PM, Игорь Никитин > > wrote:

Re: [swift-users] Compiler crashes while resolving generics constraints

2016-12-26 Thread Slava Pestov via swift-users
> On Dec 26, 2016, at 2:30 PM, Игорь Никитин wrote: > > Hello! > > Here is a class that uses all of this protocols: > https://gist.github.com/rabbitinspace/a88410d778e5ac955ee88bdfede6e00b > > Line 19 > > Latest Xcode g

Re: [swift-users] Compiler crashes while resolving generics constraints

2016-12-26 Thread Игорь Никитин via swift-users
Hello! Here is a class that uses all of this protocols: https://gist.github.com/rabbitinspace/a88410d778e5ac955ee88bdfede6e00b Line 19 Latest Xcode gives me this log: https://gist.github.com/rabbitinspace/6cb5ebd536a81b0b

Re: [swift-users] Compiler crashes while resolving generics constraints

2016-12-25 Thread Slava Pestov via swift-users
Hi Igor, Your example is not self-contained, so I added the following definitions: struct URI {} struct App { class Remote { struct Credentials {} } } struct RemoteUser {} protocol ResponseRepresentable {} protocol RemoteCredentials {} Unfortunately, this makes the code compile in b

[swift-users] Compiler crashes while resolving generics constraints

2016-12-25 Thread Игорь Никитин via swift-users
Hello! I have few protocols with associated types: protocol Remote { associatedtype Credentials: RemoteCredentials static var url: URI { get } static var name: String { get } static var credentials: Credentials.Type { get } } protocol RemoteAuthenticating { associatedtype Remo