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

Unified Diff: pkg/front_end/testcases/inference/future_or_subtyping.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_or_subtyping.dart
diff --git a/pkg/front_end/testcases/inference/future_or_subtyping.dart b/pkg/front_end/testcases/inference/future_or_subtyping.dart
index 23d27b60e8c000da8c67a6a8432d801a86ac5b6c..2b21a73ce550c9271d550f622b6e742bebed33f2 100644
--- a/pkg/front_end/testcases/inference/future_or_subtyping.dart
+++ b/pkg/front_end/testcases/inference/future_or_subtyping.dart
@@ -12,7 +12,7 @@ add2(int y) {}
main() {
Future<int> f;
var /*@type=Future<void>*/ a = /*@promotedType=none*/ f
- . /*@typeArgs=void*/ then(add);
+ . /*@typeArgs=void*/ /*@target=Future::then*/ then(add);
var /*@type=Future<dynamic>*/ b = /*@promotedType=none*/ f
- . /*@typeArgs=dynamic*/ then(add2);
+ . /*@typeArgs=dynamic*/ /*@target=Future::then*/ then(add2);
}

Powered by Google App Engine
This is Rietveld 408576698