| 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 /*@testedFeatures=inference*/ | 5 /*@testedFeatures=inference*/ |
| 6 library test; | 6 library test; |
| 7 | 7 |
| 8 import 'dart:async'; | 8 import 'dart:async'; |
| 9 | 9 |
| 10 foo() async { | 10 foo() async { |
| 11 Future<List<A>> f1 = null; | 11 Future<List<A>> f1 = null; |
| 12 Future<List<A>> f2 = null; | 12 Future<List<A>> f2 = null; |
| 13 List<List<A>> merged = | 13 List<List<A>> merged = await Future. /*@typeArgs=List<A>*/ wait( |
| 14 await Future. /*@typeArgs=List<A>*/ /*@target=Future::wait*/ wait( | 14 /*@typeArgs=Future<List<A>>*/ [f1, f2]); |
| 15 /*@typeArgs=Future<List<A>>*/ [f1, f2]); | |
| 16 } | 15 } |
| 17 | 16 |
| 18 class A {} | 17 class A {} |
| 19 | 18 |
| 20 main() {} | 19 main() {} |
| OLD | NEW |