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
{{ message }}
This repository has been archived by the owner on Dec 6, 2017. It is now read-only.
factory Key(Type type, [Type annotation]) {
var _hashCode = type.hashCode + annotation.hashCode;
var _id = _hashToKey.putIfAbsent(_hashCode, () => _lastKeyId++);
return new Key._newKey(type, annotation, _hashCode, _id);
}
Key._newKey(this.type, this.annotation, this.hashCode, this.id);
bool operator ==(other) =>
other is Key && other.hashCode == hashCode;
Is this code right ?
I think Key(A, B) == Key (B, A) is wrong.
Two objects that are equal have the same hash code but two objects with the same hash code are not necessary equal (however this is assumed by the current code)
The text was updated successfully, but these errors were encountered:
pavelgj
added a commit
to pavelgj/di.dart
that referenced
this issue
Apr 27, 2014
Is this code right ?
I think
Key(A, B) == Key (B, A)
is wrong.Two objects that are equal have the same hash code but two objects with the same hash code are not necessary equal (however this is assumed by the current code)
The text was updated successfully, but these errors were encountered: