Allow non-fixed multi-payload enum layouts in Swift

Originator:andrew
Number:rdar://19742467 Date Originated:
Status:Duplicate of 15666173 Resolved:
Product:Xcode Product Version:6.3
Classification: Reproducible:
 
Summary:
Currently if you try and use this Swift code:

enum DownloadResult<T> {
    case Result(T)
    case Error(NSError)
}

You get the following compiler error:

Unimplemented IR generation feature non-fixed multi-payload enum layout

Steps to Reproduce:


Expected Results:
I'd expect it to compile and run.

Actual Results:
Compiler error.

Version:


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!