Skip to content

Commit db610bb

Browse files
eernstgdevoncarew
andauthored
Adjust the implements clause of IntX (#866)
Co-authored-by: Devon Carew <[email protected]>
1 parent 22d8879 commit db610bb

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

pkgs/fixnum/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## 1.2.0-wip
2+
3+
* Change `IntX` such that it implements `Comparable<IntX>`. This makes it
4+
possible for `IntX` (and in turn `Int64` and `Int32`) be used with methods
5+
like `sortedBy` in the platform libraries.
6+
17
## 1.1.1
28

39
* Require Dart `^3.1.0`

pkgs/fixnum/lib/src/intx.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import 'int32.dart';
66
import 'int64.dart';
77

88
/// A fixed-precision integer.
9-
abstract class IntX implements Comparable<Object> {
9+
abstract class IntX implements Comparable<IntX> {
1010
/// Addition operator.
1111
IntX operator +(Object other);
1212

pkgs/fixnum/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: fixnum
2-
version: 1.1.1
2+
version: 1.2.0-wip
33
description: >-
44
Library for 32- and 64-bit signed fixed-width integers with consistent
55
behavior between native and JS runtimes.

0 commit comments

Comments
 (0)