Skip to content

Commit f1076fd

Browse files
authored
Merge pull request #16002 from xedin/rdar-39209245
2 parents 8a43338 + b5dee6d commit f1076fd

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

test/Constraints/rdar39209245.swift

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
// RUN: %target-typecheck-verify-swift
2+
3+
struct S: Hashable {
4+
let e: E?
5+
}
6+
7+
enum E: Hashable {
8+
case foo
9+
case bar
10+
}
11+
12+
let a = S(e: .foo)
13+
let b = S(e: .bar)
14+
15+
_ = a == b

0 commit comments

Comments
 (0)