mirror of
https://github.com/apple/swift.git
synced 2026-06-20 15:42:51 +02:00
66d0df6bae
This reverts commit 78e5e25215.
21 lines
374 B
Swift
21 lines
374 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)
|