Skip to content

Commit b5dee6d

Browse files
committed
[TypeChecker] Add test-case for rdar://problem/39209245
1 parent 3c94a31 commit b5dee6d

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)