Custom Swift enums cannot have more then one generic type parameter
| Originator: | mike | ||
| Number: | rdar://17277550 | Date Originated: | 12-Jun-2014 00:41 AM |
| Status: | Duplicate of 15666173 (Open) | Resolved: | |
| Product: | Product Version: | ||
| Classification: | Reproducible: |
Summary:
When trying to create an enum like so:
enum Either<A, B> {
case Left(A)
case Right(B)
}
the compiler fails with error:
error: unimplemented IR generation feature non-fixed multi-payload enum layout
enum Either<A, B> {
^
LLVM ERROR: unimplemented IRGen feature! non-fixed multi-payload enum layout
Steps to Reproduce:
- create a swift file in an xcode 6 swift project
- add the above code snippet
- build the project
Expected Results:
Enums should support multiple type parameters
Actual Results:
Enums do not support multiple type parameters
Version:
XCode 6 beta
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!