| OLD | NEW |
| (Empty) | |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. |
| 4 |
| 5 // Regression test for http://dartbug.com/21579 |
| 6 // |
| 7 // Fails for --trust-type-annotations: |
| 8 // |
| 9 // test.py -mrelease -cdart2js -rd8 --dart2js-options='--trust-type-annotations'
dart2js_extra/21579_test |
| 10 |
| 11 import 'package:expect/expect.dart'; |
| 12 |
| 13 main() { |
| 14 var a = new List.generate(100, (i) => i); |
| 15 a.sort((a, b) => 1000000000000000000000 * a.compareTo(b)); |
| 16 Expect.equals(0, a.first); |
| 17 Expect.equals(99, a.last); |
| 18 } |
| OLD | NEW |