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

Side by Side Diff: pkg/front_end/testcases/inference/future_union_downwards_generic_method_with_future_return.dart

Issue 2920223008: Record method invocation targets that are not procedures. (Closed)
Patch Set: Created 3 years, 6 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 unified diff | Download patch
OLDNEW
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() {}
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698