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

Unified Diff: tests/corelib_strong/sort_test.dart

Issue 2683893002: Make corelib_strong tests strong-mode compliant (Closed)
Patch Set: Created 3 years, 10 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/sort_test.dart
diff --git a/tests/corelib_strong/sort_test.dart b/tests/corelib_strong/sort_test.dart
index 9327363c00f6c3ba6745767915cfa76a657b4954..99a0c71d1389e59026746e5a4c1858916f27b5f5 100644
--- a/tests/corelib_strong/sort_test.dart
+++ b/tests/corelib_strong/sort_test.dart
@@ -7,8 +7,10 @@ library sort_test;
import "package:expect/expect.dart";
import 'sort_helper.dart';
+typedef int intPairToInt(int a, int b);
+
main() {
- var compare = (a, b) => a.compareTo(b);
+ intPairToInt compare = (a, b) => a.compareTo(b);
Leaf 2017/02/08 02:03:49 I think you could just write this as var compare
var sort = (list) => list.sort(compare);
new SortHelper(sort, compare).run();

Powered by Google App Engine
This is Rietveld 408576698