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

Unified Diff: pkg/front_end/testcases/inference/infer_assign_to_index.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_assign_to_index.dart
diff --git a/pkg/front_end/testcases/inference/infer_assign_to_index.dart b/pkg/front_end/testcases/inference/infer_assign_to_index.dart
index ef4ae3ee02a8eeb12147ac191bce5204e729fa3a..7ea82f707959da20b40add95a8bf79f5ddf65b68 100644
--- a/pkg/front_end/testcases/inference/infer_assign_to_index.dart
+++ b/pkg/front_end/testcases/inference/infer_assign_to_index.dart
@@ -6,6 +6,7 @@
library test;
List<double> a = <double>[];
-var /*@topType=dynamic*/ b = (/*error:TOP_LEVEL_UNSUPPORTED*/ a[0] = 1.0);
+var /*@topType=dynamic*/ b =
+ (/*error:TOP_LEVEL_UNSUPPORTED*/ a /*@target=List::[]=*/ [0] = 1.0);
main() {}

Powered by Google App Engine
This is Rietveld 408576698