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

Unified Diff: pkg/front_end/testcases/inference/infer_types_on_generic_instantiations_in_library_cycle.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/infer_types_on_generic_instantiations_in_library_cycle.dart
diff --git a/pkg/front_end/testcases/inference/infer_types_on_generic_instantiations_in_library_cycle.dart b/pkg/front_end/testcases/inference/infer_types_on_generic_instantiations_in_library_cycle.dart
index e84cd40571c2e6a4d9df291a6b3d8c52c58d5b66..f41d138d13255b947ba2500127f84042f73e858a 100644
--- a/pkg/front_end/testcases/inference/infer_types_on_generic_instantiations_in_library_cycle.dart
+++ b/pkg/front_end/testcases/inference/infer_types_on_generic_instantiations_in_library_cycle.dart
@@ -25,8 +25,10 @@ class B<E> extends A<E> implements M {
}
foo() {
- int y = /*error:INVALID_ASSIGNMENT*/ new B<String>().m(null, null).value;
- String z = new B<String>().m(null, null).value;
+ int y = /*error:INVALID_ASSIGNMENT*/ new B<String>()
+ . /*@target=B::m*/ m(null, null)
+ .value;
+ String z = new B<String>(). /*@target=B::m*/ m(null, null).value;
}
main() {}

Powered by Google App Engine
This is Rietveld 408576698