Chromium Code Reviews| 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 |
|
floitsch
2012/02/20 19:01:54
compile-time error = warning?
Lasse Reichstein Nielsen
2012/02/21 13:53:56
Not really, that's why it's gone.
Also because it'
|
| - 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(); |
| } |