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
Apple Swift version 4.0 (swiftlang-900.0.43 clang-900.0.22.8)
Target: x86_64-apple-macosx10.9
Additional Detail from JIRA
Votes
0
Component/s
Compiler
Labels
Bug
Assignee
None
Priority
Medium
md5: de980d175af7b0afd1d2b86a34e75b22
duplicates:
SR-55 non-@objc protocol existentials do not conform to their own protocol type
Issue Description:
Protocols can't conform to themselves in the general case because of static requirements, but given class existentials comprise of a concrete type, the following should really compile:
protocolP {}
classFoo : P {}
funcfoo<T : P>(_t: T) {}
letf: (Foo & P) = Foo()
foo(f) // Cannot invoke 'foo' with an argument list of type '((Foo & P))'
But currently doesn't.
The text was updated successfully, but these errors were encountered:
Environment
Apple Swift version 4.0 (swiftlang-900.0.43 clang-900.0.22.8)
Target: x86_64-apple-macosx10.9
Additional Detail from JIRA
md5: de980d175af7b0afd1d2b86a34e75b22
duplicates:
Issue Description:
Protocols can't conform to themselves in the general case because of static requirements, but given class existentials comprise of a concrete type, the following should really compile:
But currently doesn't.
The text was updated successfully, but these errors were encountered: