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

Unified Diff: frog/tests/leg_only/src/LabelTest.dart

Issue 9421035: Support break and labeled statements. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address review comments. Update expectations. Created 8 years, 10 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 | « frog/leg/typechecker.dart ('k') | tests/co19/co19-leg.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: frog/tests/leg_only/src/LabelTest.dart
diff --git a/frog/tests/leg_only/src/LabelTest.dart b/frog/tests/leg_only/src/LabelTest.dart
index 09eb9753f8a5dbc32ef9b75ef5ea041992def3d0..edda92e22348ef203dd7e86f94d3f64212871777 100644
--- a/frog/tests/leg_only/src/LabelTest.dart
+++ b/frog/tests/leg_only/src/LabelTest.dart
@@ -49,23 +49,6 @@ noncaptureContinue() {
while(true) (() { continue; })(); /// 09: compile-time error
}
-// Duplicate labels are reported as a warning only.
-duplicateLabels() {
- foo: { /// 10: compile-time error
- foo: { /// 10: continued
- return; /// 10: continued
- break foo; /// 10: continued
- } /// 10: continued
- } /// 10: continued
-}
-
-
-// Unused labels are reported as a warning only.
-unusedLabels() {
- foo: { return; } /// 11: compile-time error
-}
-
-
main() {
undeclaredBreakLabel1();
undeclaredBreakLabel2();
@@ -76,6 +59,4 @@ main() {
noncaptureLabel();
noncaptureBreak();
noncaptureContinue();
- duplicateLabels();
- unusedLabels();
}
« no previous file with comments | « frog/leg/typechecker.dart ('k') | tests/co19/co19-leg.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698