Swift 2: Crash, evidently casting to polymorphic function type

Originator:rix.rob
Number:rdar://21295314 Date Originated:09-Jun-2015 12:08 AM
Status:Open Resolved:
Product:Developer Tools Product Version:Xcode-7-beta (7A120f)
Classification:Crash/Hang/Data Loss Reproducible:Always
 
Summary:
First Swift 2 compiler crash I’ve encountered so far.


Steps to Reproduce:
1. clone this repo & branch https://github.com/robrix/Either/pull/36
2. check out the submodules and all (there’s just the one, don’t be scared)
3. run the unit tests

Expected Results:
Not crash.

Actual Results:
Crash.

Regression:
This didn’t crash in Swift 1.2.

Notes:
N/A

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!