Make generic types' PartialEq
, Eq
, Hash
and Debug
implementations more flexible
#652
Labels
A-framework
Affects the framework crates and the translator for them
enhancement
New feature or request
Milestone
We should consider implementing
PartialEq
,Eq
,Hash
andDebug
on generic collections for allT: Message
, instead ofT: $trait + Message
as is currently done via.#[derive]
.Notes:
NSArray
, so it is comparable even if it containsAnyObject
. It will try to callisEqual:
on the elements below it, and that will expectedly crash if the type doesn't implement anisEqual:
method, just like it does if you try to use the built-in conversion operators.NSCache<AnyObject, AnyObject>
to be hashable and comparable, since that type just does pointer comparison.NSArray<AnyObject>
->NSObject
, and compare those.Related to #559, #562 and #267.
The text was updated successfully, but these errors were encountered: