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

Unified Diff: lib/src/intx.dart

Issue 1963283002: Fix parameter types for compareTo(). (Closed) Base URL: https://github.com/dart-lang/fixnum@master
Patch Set: Created 4 years, 7 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 | « lib/src/int64.dart ('k') | pubspec.yaml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/intx.dart
diff --git a/lib/src/intx.dart b/lib/src/intx.dart
index b47a35e14c2806b48ff37478930220f63d91ad0a..6b4a454050fe8dff408610916cf641a1060402cf 100644
--- a/lib/src/intx.dart
+++ b/lib/src/intx.dart
@@ -7,7 +7,7 @@ part of fixnum;
/**
* A fixed-precision integer.
*/
-abstract class IntX implements Comparable {
+abstract class IntX implements Comparable<dynamic> {
/** Addition operator. */
IntX operator +(other);
@@ -80,7 +80,7 @@ abstract class IntX implements Comparable {
*/
IntX shiftRightUnsigned(int shiftAmount);
- int compareTo(Comparable other);
+ int compareTo(other);
/**
* Returns `true` if and only if [other] is an int or IntX equal in
« no previous file with comments | « lib/src/int64.dart ('k') | pubspec.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698