mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
21 lines
373 B
Swift
21 lines
373 B
Swift
// RUN: %target-run-simple-swift | FileCheck %s
|
|
|
|
// REQUIRES: executable_test
|
|
|
|
struct Structure {
|
|
var a: UInt8
|
|
var b: UInt8
|
|
var c: UInt8
|
|
}
|
|
|
|
enum Enum: Int {
|
|
case One, Two, Three, Four
|
|
}
|
|
|
|
var x: [Enum: (Structure?, Structure?)] = [
|
|
.One: (Structure(a: 1, b: 2, c: 3), nil)
|
|
]
|
|
|
|
// CHECK: [main.Enum.One: (Optional(main.Structure(a: 1, b: 2, c: 3)), nil)]
|
|
print(x)
|