Chromium Code Reviews| 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(); |