| OLD | NEW |
| 1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 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. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 // Test that a generic closure is correctly constructed. | 5 // Test that a generic closure is correctly constructed. |
| 6 | 6 |
| 7 library generic_methods_closure_test; | 7 library generic_methods_closure_test; |
| 8 | 8 |
| 9 import "package:expect/expect.dart"; | 9 import "package:expect/expect.dart"; |
| 10 | 10 |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 } | 32 } |
| 33 | 33 |
| 34 helper1<T>(list); | 34 helper1<T>(list); |
| 35 helper2<T>(list); | 35 helper2<T>(list); |
| 36 } | 36 } |
| 37 | 37 |
| 38 main() { | 38 main() { |
| 39 List<B> list = <B>[new B()]; | 39 List<B> list = <B>[new B()]; |
| 40 fun<B>(list); | 40 fun<B>(list); |
| 41 } | 41 } |
| OLD | NEW |