1
1
mirror of https://github.com/github/semantic.git synced 2024-11-29 11:02:26 +03:00

Correct AnyEquatable equality.

This commit is contained in:
Rob Rix 2015-10-01 10:34:36 -04:00
parent fae5fc5123
commit 2394ea3545

View File

@ -12,6 +12,6 @@ public enum AnyEquatable<A>: Equatable {
public func == <A> (left: AnyEquatable<A>, right: AnyEquatable<A>) -> Bool {
switch (left, right) {
case let (.External(a, eq), .External(b, _)):
return eq(left, right)
return eq(a, b)
}
}