SR-55 non-@objc protocol existentials do not conform to their own protocol type
Issue Description:
Per the attached Swift file, line 21 will result in a compiler error attempting to call testP with a parameter of type protocol P. Naturally the parameter conforms to P. I tested against 0425 SNAPSHOT and it did not pass.
The text was updated successfully, but these errors were encountered:
It is actually not generally the case that a value of type P can be used with a generic parameter constrained by P—for example, if P has static requirements.
Attachment: Download
Environment
OS X 10.11.5 Beta 2
Additional Detail from JIRA
md5: 4be481df59ed0f10559f54551d870724
duplicates:
Issue Description:
Per the attached Swift file, line 21 will result in a compiler error attempting to call
testP
with a parameter of typeprotocol P
. Naturally the parameter conforms toP
. I tested against 0425 SNAPSHOT and it did not pass.The text was updated successfully, but these errors were encountered: