Cannot write an Either enum

Originator:chriseidhof
Number:rdar://17268523 Date Originated:11 jun
Status:open Resolved:
Product:Developer Tools Product Version:
Classification: Reproducible:
 
The following code fails to compile:

enum Either<LeftType,RightType> {
    case Left(LeftType)
    case Right(RightType)
}

Steps to Reproduce:
Paste the code into a swift file and compile

Expected Results:
Successful compilation

Actual Results:
error: unimplemented IR generation feature non-fixed multi-payload enum layout
enum Either<LeftType,RightType> {
     ^
LLVM ERROR: unimplemented IRGen feature! non-fixed multi-payload enum layout

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!