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

Unified Diff: pkg/front_end/testcases/inference/downwards_inference_for_each.dart

Issue 2868133002: Fix annotation of promoted parameters in Fasta inference tests. (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/downwards_inference_for_each.dart
diff --git a/pkg/front_end/testcases/inference/downwards_inference_for_each.dart b/pkg/front_end/testcases/inference/downwards_inference_for_each.dart
index d1c212ab9adf9ce830adeb9380e51960802ba825..5e37b04e222697c107d5b179587c7480ee0ff3c6 100644
--- a/pkg/front_end/testcases/inference/downwards_inference_for_each.dart
+++ b/pkg/front_end/testcases/inference/downwards_inference_for_each.dart
@@ -12,7 +12,6 @@ abstract class MyStream<T> extends Stream<T> {
}
Future main() async {
- for (int /*@promotedType=none*/ x in /*@typeArgs=int*/ [1, 2, 3]) {}
- await for (int /*@promotedType=none*/ x
- in new /*@typeArgs=int*/ MyStream()) {}
+ for (int x in /*@typeArgs=int*/ [1, 2, 3]) {}
+ await for (int x in new /*@typeArgs=int*/ MyStream()) {}
}

Powered by Google App Engine
This is Rietveld 408576698