Swift compiler crash / run-time crash

Originator:radexpl
Number:rdar://19517003 Date Originated:
Status:Closed Resolved:
Product: Product Version:
Classification: Reproducible:
 
Summary:
This snippet of code crashes the Swift compiler: https://gist.github.com/radex/faf19a077e6cc108bffd

And here's a slight variation of the above code which does compile, but crashes at runtime: https://gist.github.com/radex/abc77fc6e95ac9043a34

Steps to Reproduce:


Expected Results:


Actual Results:


Version:
xcode 6.2 b4

Notes:


Configuration:
-

Attachments:

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!