Allow variable/arguments with multiple types

Originator:davbeck
Number:rdar://20141807 Date Originated:12-Mar-2015 01:36 PM
Status:Open Resolved:
Product:Developer Tools Product Version:Swift 1.2
Classification:Enhancement Reproducible:Always
 
Summary:
In ObjC, you can declare a variable as being an object, or even a specific class, as well as any number of protocols. In Swift however, you only get one type. And because of the way that protocols work, you can’t even specify that you require multiple protocols.

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!