Files
swift-mirror/test/Constraints/rdar39209245.swift
2018-04-17 17:35:25 -07:00

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