Swift: compiler segmentation fault when passing AnyObject to function expecting Any

Originator:thephatmann
Number:rdar://19346816 Date Originated:25-Dec-2014 04:04 PM
Status:Closed Resolved:25-Feb-2015
Product:Developer Tools Product Version:Xcode 6.1.1
Classification:Serious Bug Reproducible:Always
 
Fixed in Xcode 6.3

Summary:
Provide a descriptive summary of the issue.

Steps to Reproduce:

func a(any: Any) {}
func b() -> AnyObject { return C() }
class C {}

a(b())

Expected Results:
No crash.

Actual Results:
Compiler segmentation fault

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!