[dart-announce] Breaking change [#59776]: `IntX implements Comparable<IntX>`

36 views
Skip to first unread message

'Erik Ernst' via Dart Announcements

unread,
Dec 20, 2024, 5:35:45 AM12/20/24
to anno...@dartlang.org, Kevin Chisholm
This message announces the intention to change the class `IntX` such that it implements `Comparable<IntX>` rather than `Comparable<Object>`. This change has no known impact, and it enables methods like `sortedBy` on lists of `Int64` or `Int32` elements.


Please comment on this issue if you expect any impact from this change.

  best regards, Erik

--
Erik Ernst  -  Google Danmark ApS
Skt Petri Passage 5, 2 sal, 1165 København K, Denmark
CVR no. 28866984

--
For more ways to connect visit https://dart.dev/community
Reply all
Reply to author
Forward
0 new messages