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

Unified Diff: pkg/front_end/testcases/inference_new/infer_assign_to_index.dart

Issue 2935323002: Lift nearly all top-level type inference restrictions. (Closed)
Patch Set: Created 3 years, 6 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_new/infer_assign_to_index.dart
diff --git a/pkg/front_end/testcases/inference/infer_assign_to_index.dart b/pkg/front_end/testcases/inference_new/infer_assign_to_index.dart
similarity index 74%
rename from pkg/front_end/testcases/inference/infer_assign_to_index.dart
rename to pkg/front_end/testcases/inference_new/infer_assign_to_index.dart
index 7ea82f707959da20b40add95a8bf79f5ddf65b68..f08da41353787dce423459411d5930beeba50b03 100644
--- a/pkg/front_end/testcases/inference/infer_assign_to_index.dart
+++ b/pkg/front_end/testcases/inference_new/infer_assign_to_index.dart
@@ -6,7 +6,6 @@
library test;
List<double> a = <double>[];
-var /*@topType=dynamic*/ b =
- (/*error:TOP_LEVEL_UNSUPPORTED*/ a /*@target=List::[]=*/ [0] = 1.0);
+var /*@topType=double*/ b = (a /*@target=List::[]=*/ [0] = 1.0);
main() {}

Powered by Google App Engine
This is Rietveld 408576698