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:
parent
fae5fc5123
commit
2394ea3545
@ -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)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user