Skip to content

Commit

Permalink
Merge pull request #626 from Quick/override-nsobject-hash
Browse files Browse the repository at this point in the history
[7.x][Predicate] Override `NSObject.hash` over `Hashable.hashValue`
  • Loading branch information
ikesyo authored Jan 28, 2019
2 parents df937ff + a38342f commit f320bae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Nimble/Matchers/Predicate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ final public class NMBPredicateStatus: NSObject {
public static let doesNotMatch: NMBPredicateStatus = NMBPredicateStatus(status: 1)
public static let fail: NMBPredicateStatus = NMBPredicateStatus(status: 2)

public override var hashValue: Int { return self.status.hashValue }
public override var hash: Int { return self.status.hashValue }

public override func isEqual(_ object: Any?) -> Bool {
guard let otherPredicate = object as? NMBPredicateStatus else {
Expand Down

0 comments on commit f320bae

Please sign in to comment.