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

Unified Diff: pkg/front_end/testcases/inference/for_in_loop_promotion.dart.direct.expect

Issue 2960003003: In non-strong mode, don't infer the type of for-in loop variables. (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
« no previous file with comments | « pkg/front_end/lib/src/fasta/kernel/kernel_shadow_ast.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/front_end/testcases/inference/for_in_loop_promotion.dart.direct.expect
diff --git a/pkg/front_end/testcases/inference/for_in_loop_promotion.dart.direct.expect b/pkg/front_end/testcases/inference/for_in_loop_promotion.dart.direct.expect
index dcff01acbeac3f6a38f8c415199a57eca6990cfc..e0d10e2d0e1a3ce5a9af8d0f1409f68bc5c6276b 100644
--- a/pkg/front_end/testcases/inference/for_in_loop_promotion.dart.direct.expect
+++ b/pkg/front_end/testcases/inference/for_in_loop_promotion.dart.direct.expect
@@ -3,7 +3,7 @@ import self as self;
import "dart:core" as core;
static method test(core::List<core::num> nums) → invalid-type {
- for (core::num x in nums) {
+ for (dynamic x in nums) {
if(x is core::int) {
dynamic y = x{core::int};
}
« no previous file with comments | « pkg/front_end/lib/src/fasta/kernel/kernel_shadow_ast.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698