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

Unified Diff: pkg/front_end/testcases/inference/future_union_downwards_4.dart

Issue 2874033003: Set MethodInvocation.interfaceTarget during type inference. (Closed)
Patch Set: Created 3 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: pkg/front_end/testcases/inference/future_union_downwards_4.dart
diff --git a/pkg/front_end/testcases/inference/future_union_downwards_4.dart b/pkg/front_end/testcases/inference/future_union_downwards_4.dart
index da6d18ac6f813b7414efd1bde1f1fbba9661cf98..ea093e25b7e2a3da7a3fc3da6cfed325bedc3c21 100644
--- a/pkg/front_end/testcases/inference/future_union_downwards_4.dart
+++ b/pkg/front_end/testcases/inference/future_union_downwards_4.dart
@@ -16,12 +16,12 @@ class MyFuture<T> implements Future<T> {
Future f;
// Instantiates Future<int>
-Future<int> t1 = f. /*@typeArgs=int*/ then(
+Future<int> t1 = f. /*@typeArgs=int*/ /*@target=Future::then*/ then(
/*@returnType=MyFuture<int>*/ (/*@type=dynamic*/ _) =>
new /*@typeArgs=int*/ MyFuture.value('hi'));
// Instantiates List<int>
-Future<List<int>> t2 = f. /*@typeArgs=List<int>*/ then(
+Future<List<int>> t2 = f. /*@typeArgs=List<int>*/ /*@target=Future::then*/ then(
/*@returnType=List<int>*/ (/*@type=dynamic*/ _) => /*@typeArgs=int*/ [3]);
Future<List<int>> g2() async {
return /*@typeArgs=int*/ [3];

Powered by Google App Engine
This is Rietveld 408576698