Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(219)

Unified Diff: pkg/collection_helpers/lib/equality.dart

Issue 37003004: Fix equality type problem. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/collection_helpers/lib/equality.dart
diff --git a/pkg/collection_helpers/lib/equality.dart b/pkg/collection_helpers/lib/equality.dart
index e48d130de16210d1e122603562e7fbcbe12dc3a0..c52d30f8c5307320938edf30a3125d50e799cb9a 100644
--- a/pkg/collection_helpers/lib/equality.dart
+++ b/pkg/collection_helpers/lib/equality.dart
@@ -47,7 +47,7 @@ abstract class Equality<E> {
* This equality uses the objects' own [Object.==] and [Object.hashCode] for
* the equality.
*/
-class DefaultEquality implements Equality<Object> {
+class DefaultEquality implements Equality {
const DefaultEquality();
bool equals(Object e1, Object e2) => e1 == e2;
int hash(Object e) => e.hashCode;
@@ -57,7 +57,7 @@ class DefaultEquality implements Equality<Object> {
/**
* Equality of objects that compares only the identity of the objects.
*/
-class IdentityEquality implements Equality<Object> {
+class IdentityEquality implements Equality {
const IdentityEquality();
bool equals(Object e1, Object e2) => identical(e1, e2);
int hash(Object e) => identityHashCode(e);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698