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

Unified Diff: pkg/front_end/testcases/inference/propagate_inference_to_field_in_class.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/propagate_inference_to_field_in_class.dart
diff --git a/pkg/front_end/testcases/inference/propagate_inference_to_field_in_class.dart b/pkg/front_end/testcases/inference/propagate_inference_to_field_in_class.dart
index 529cb2fe722a85218943c522182fedc0be2af441..ae8e053c26929f7409dbc635b648dea8cf09b0d9 100644
--- a/pkg/front_end/testcases/inference/propagate_inference_to_field_in_class.dart
+++ b/pkg/front_end/testcases/inference/propagate_inference_to_field_in_class.dart
@@ -13,5 +13,6 @@ test() {
var /*@type=A*/ a = new A();
A b = /*@promotedType=none*/ a; // doesn't require down cast
print(/*@promotedType=none*/ a.x); // doesn't require dynamic invoke
- print(/*@promotedType=none*/ a.x + 2); // ok to use in bigger expression
+ print(/*@promotedType=none*/ a.x /*@target=num::+*/ +
+ 2); // ok to use in bigger expression
}

Powered by Google App Engine
This is Rietveld 408576698