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

Unified Diff: compiler/javatests/com/google/dart/compiler/parser/SyntaxTest.java

Issue 10539155: Fix in analyzer for consecutively labeled case statments. (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
« no previous file with comments | « compiler/java/com/google/dart/compiler/parser/DartParser.java ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: compiler/javatests/com/google/dart/compiler/parser/SyntaxTest.java
diff --git a/compiler/javatests/com/google/dart/compiler/parser/SyntaxTest.java b/compiler/javatests/com/google/dart/compiler/parser/SyntaxTest.java
index 8ee0b348a3df36b45e9f04e77acb43cee0d5803d..b3920c4d3fb2945a75061b07a11dfbd9ba5ff371 100644
--- a/compiler/javatests/com/google/dart/compiler/parser/SyntaxTest.java
+++ b/compiler/javatests/com/google/dart/compiler/parser/SyntaxTest.java
@@ -633,4 +633,16 @@ public class SyntaxTest extends AbstractParserTest {
ParserErrorCode.UNEXPECTED_TOKEN, 2, 13,
ParserErrorCode.EXPECTED_TOKEN, 4, 1);
}
+
+ public void testLabelledCaseStatements() throws Exception {
+ parseUnit("phony_labelled_case_statements.dart",
+ Joiner.on("\n").join(
+ "method() {",
+ " switch(1) {",
+ " A: case 0:",
+ " B: case 1:",
+ " break;",
+ " }",
+ "}"));
+ }
}
« no previous file with comments | « compiler/java/com/google/dart/compiler/parser/DartParser.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698