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

Unified Diff: tests/corelib_strong/list_sort_test.dart

Issue 2959443002: Make Comparable.compare generic.
Patch Set: Created 3 years, 6 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/core/comparable.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/corelib_strong/list_sort_test.dart
diff --git a/tests/corelib_strong/list_sort_test.dart b/tests/corelib_strong/list_sort_test.dart
index d251e2376ea8d3e50a11cd8099eb1a5c213ee371..c19a9e925e37dabeaac1af697c1e372e1a3bd27e 100644
--- a/tests/corelib_strong/list_sort_test.dart
+++ b/tests/corelib_strong/list_sort_test.dart
@@ -8,7 +8,7 @@ import 'sort_helper.dart';
class ListSortTest {
static void testMain() {
- var compare = Comparable.compare;
+ Comparator<num> compare = Comparable.compare;
var sort = (List<num> list) => list.sort(compare);
new SortHelper(sort, compare).run();
« no previous file with comments | « sdk/lib/core/comparable.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698