You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In your sample code, you have an incorrect signature for NSObject's equal(_:) method. The signature you gave uses equal(to:), which generates a warning and, because it's the wrong signature, means that Nimble will call NSObject's equal(_:), which does pointer equality.
I wrote #1181 to demonstrate that Nimble is doing the right thing here. Please feel free to re-open this issue if I have anything wrong.
What did you do?
Create an NSObject (in Swift) that conforms to Comparable and implements isEqual(to: Any?).
Compared instances of the Tiger object using predicate equal
What did you expect to happen?
Expected the objects to be compared using the implementation of the Equatable protocol and to return true.
What actually happened instead?
Instead, they are compared by pointer to see if they are the same object and returns false.
Environment
List the software versions you're using:
Please also mention which package manager you used and its version. Delete the
other package managers in this list:
The text was updated successfully, but these errors were encountered: