Skip to content

Commit f320bae

Browse files
authored
Merge pull request #626 from Quick/override-nsobject-hash
[7.x][Predicate] Override `NSObject.hash` over `Hashable.hashValue`
2 parents df937ff + a38342f commit f320bae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/Nimble/Matchers/Predicate.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ final public class NMBPredicateStatus: NSObject {
311311
public static let doesNotMatch: NMBPredicateStatus = NMBPredicateStatus(status: 1)
312312
public static let fail: NMBPredicateStatus = NMBPredicateStatus(status: 2)
313313

314-
public override var hashValue: Int { return self.status.hashValue }
314+
public override var hash: Int { return self.status.hashValue }
315315

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

0 commit comments

Comments
 (0)