Swift protocol shortcuts don't work with class conformance

Originator:ericasadun
Number:rdar://23582191 Date Originated:17 Nov 15
Status: Resolved:
Product:Swift 2.1 Product Version:
Classification: Reproducible:N/A
 
You have to say

<T: UIViewController where T: MyProtocol>

and not

<T: protocol<UIViewController, MyProtocol>>

Latter is cleaner, preferable, illegal

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!