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

Unified Diff: sdk/lib/core/comparable.dart

Issue 12298027: Revert "Make Comparable generic." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 10 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 | « sdk/lib/collection/splay_tree.dart ('k') | sdk/lib/core/date_time.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/core/comparable.dart
diff --git a/sdk/lib/core/comparable.dart b/sdk/lib/core/comparable.dart
index 7cc51837481de3ae705b3da9917624e322dd5773..e544201dca6e56ef4ff914b0a6ad6dc25f4dd696 100644
--- a/sdk/lib/core/comparable.dart
+++ b/sdk/lib/core/comparable.dart
@@ -22,7 +22,7 @@ typedef int Comparator<T>(T a, T b);
/**
* Interface used by types that have an intrinsic ordering.
*/
-abstract class Comparable<T extends Comparable<T>> {
+abstract class Comparable {
/**
* Compares this object to another [Comparable]
*
@@ -31,7 +31,7 @@ abstract class Comparable<T extends Comparable<T>> {
* May throw an [ArgumentError] if [other] is of a type that
* is not comparable to [:this:].
*/
- int compareTo(T other);
+ int compareTo(Comparable other);
/**
* Compare one comparable to another.
« no previous file with comments | « sdk/lib/collection/splay_tree.dart ('k') | sdk/lib/core/date_time.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698