| 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 4b96e97d9a03ff04a0aa7a9b8a8a218dd9a1c151..64474bd21f4b591d888c7dc22ce1892a86b71687 100644
|
| --- a/compiler/javatests/com/google/dart/compiler/parser/SyntaxTest.java
|
| +++ b/compiler/javatests/com/google/dart/compiler/parser/SyntaxTest.java
|
| @@ -64,6 +64,16 @@ public class SyntaxTest extends AbstractParserTest {
|
| assertEquals("import ;\n", dir.toSource());
|
| }
|
|
|
| + public void test_switch_noLBrace() {
|
| + parseUnit("test.dart", Joiner.on("\n").join(
|
| + "// filler filler filler filler filler filler filler filler filler filler",
|
| + "main() {",
|
| + " switch (0)",
|
| + "}",
|
| + ""),
|
| + ParserErrorCode.EXPECTED_TOKEN, 3, 12);
|
| + }
|
| +
|
| public void test_getter() {
|
| parseUnit("getter.dart", Joiner.on("\n").join(
|
| "class G {",
|
|
|