mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
16 lines
170 B
Swift
16 lines
170 B
Swift
// RUN: %target-typecheck-verify-swift
|
|
|
|
struct S: Hashable {
|
|
let e: E?
|
|
}
|
|
|
|
enum E: Hashable {
|
|
case foo
|
|
case bar
|
|
}
|
|
|
|
let a = S(e: .foo)
|
|
let b = S(e: .bar)
|
|
|
|
_ = a == b
|