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

Unified Diff: tests/corelib_strong/list_sort_test.dart

Issue 2877683002: Adjust types in SplayTree implementation and some strong tests to (Closed)
Patch Set: Bind to variable to enable promotion Created 3 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
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 7e896cd2212275c121fa08f623bf57b0e001a2af..d251e2376ea8d3e50a11cd8099eb1a5c213ee371 100644
--- a/tests/corelib_strong/list_sort_test.dart
+++ b/tests/corelib_strong/list_sort_test.dart
@@ -9,10 +9,10 @@ import 'sort_helper.dart';
class ListSortTest {
static void testMain() {
var compare = Comparable.compare;
- var sort = (list) => list.sort(compare);
+ var sort = (List<num> list) => list.sort(compare);
new SortHelper(sort, compare).run();
- new SortHelper((list) => list.sort(), compare).run();
+ new SortHelper((List<num> list) => list.sort(), compare).run();
compare = (a, b) => -a.compareTo(b);
new SortHelper(sort, compare).run();

Powered by Google App Engine
This is Rietveld 408576698