You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.compilerThe Swift compiler in itselfcrashBug: A crash, i.e., an abnormal termination of software
The second line fails because once you have a MyProtocol value, the compiler forgets where it came from, and so it could be some other type that conforms to MyProtocol. But the last line really ought to work! Sounds like more of the badness around protocols with superclass constraints.
so it could be some other type that conforms to MyProtocol
Perhaps I'm not getting how where clause works – I thought it's kind of the same as regular inheritance, the outcome at least… I was going for a counter argument that the following works, but compiler also fails to build with a redundant conformance warning followed by a crash. Perhaps a separate issue?
Oops, my brain dropped the where clause from the first half of the answer. You're right, the compiler could allow that. Can we track that in a separate bug?
bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.compilerThe Swift compiler in itselfcrashBug: A crash, i.e., an abnormal termination of software
Additional Detail from JIRA
md5: e922b9307dc02f25977e8e9031a28bb6
duplicates:
Issue Description:
Apple Swift version 4.1.2 (swiftlang-902.0.54 clang-902.0.39.2)
Target: x86_64-apple-darwin17.6.0
The text was updated successfully, but these errors were encountered: