mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
This includes indirect enums, enums with multiple associated values, or enums whose associated value is a type we don't yet support
15 lines
259 B
Swift
15 lines
259 B
Swift
|
|
public struct IntTuple {
|
|
let values: (Int64, Int64, Int64, Int64, Int64, Int64)
|
|
}
|
|
|
|
// Large enum passed indirectly.
|
|
public enum LargeEnum {
|
|
case A(IntTuple)
|
|
case B
|
|
}
|
|
|
|
public func passThroughLargeEnum(_ x: LargeEnum) -> LargeEnum {
|
|
return x
|
|
}
|