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

Unified Diff: test/kernel/regression/for_loop.dart

Issue 2070143002: Track void context. (Closed) Base URL: git@github.com:dart-lang/rasta.git@visit_for_value
Patch Set: Merged with ad52721ca12cbb5c47e968ae2070408e1fef7017 Created 4 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 | « test/kernel/kernel_test.dart ('k') | test/kernel/regression/for_loop.dart.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/kernel/regression/for_loop.dart
diff --git a/test/kernel/regression/issue_000011.dart b/test/kernel/regression/for_loop.dart
similarity index 56%
copy from test/kernel/regression/issue_000011.dart
copy to test/kernel/regression/for_loop.dart
index 26790daa1891f77c367ca46422f21e5029567693..0155ab357fc2fb4570a05b7b4ec5c6b69e0979af 100644
--- a/test/kernel/regression/issue_000011.dart
+++ b/test/kernel/regression/for_loop.dart
@@ -3,9 +3,11 @@
// BSD-style license that can be found in the LICENSE.md file.
main() {
- try {
- print(42);
- } finally {
- print(87);
+ int c = new DateTime.now().millisecondsSinceEpoch;
+ for (int i = 0; i < 100; i++) {
+ print(i++);
+ }
+ for (int i = 0; i < 100; c < 42 ? throw "fisk" : i++) {
+ print(i++);
}
}
« no previous file with comments | « test/kernel/kernel_test.dart ('k') | test/kernel/regression/for_loop.dart.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698