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

Unified Diff: tests/language/label_test.dart

Issue 10534065: In analyzer, catch use of continue and break in inappropriate places (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: # Created 8 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: tests/language/label_test.dart
diff --git a/tests/language/label_test.dart b/tests/language/label_test.dart
index e9affb2cbc3b379a22eca96207867c7dcc6bb7bf..336664a9555a394e06f3036bcd9be6d4373e07fb 100644
--- a/tests/language/label_test.dart
+++ b/tests/language/label_test.dart
@@ -221,8 +221,10 @@ class Helper {
}
static test11() {
- // Kind of odd, but is valid and shouldn't be flagged as useless either.
- L: break L;
+ while (true) {
Brian Wilkerson 2012/06/08 18:49:05 Looking at the spec, I don't see where the origina
zundel 2012/06/08 20:15:08 You are right. I had coded it incorrectly at first
+ // Kind of odd, but is valid and shouldn't be flagged as useless either.
+ L: break L;
+ }
return 111;
}

Powered by Google App Engine
This is Rietveld 408576698