| Index: compiler/javatests/com/google/dart/compiler/resolver/ResolverTest.java
|
| ===================================================================
|
| --- compiler/javatests/com/google/dart/compiler/resolver/ResolverTest.java (revision 8465)
|
| +++ compiler/javatests/com/google/dart/compiler/resolver/ResolverTest.java (working copy)
|
| @@ -946,6 +946,19 @@
|
| ErrorExpectation.errEx(ResolverErrorCode.CONST_MAP_WITH_TYPE_VARIABLE, 8, 19, 1));
|
| }
|
|
|
| + public void test_multipleLabels() {
|
| + resolveAndTest(Joiner.on("\n").join(
|
| + "class Object {}",
|
| + "class MyClass<E> {",
|
| + " foo() {",
|
| + " a: b: while (true) { break a; } // ok",
|
| + " a: b: while (true) { break b; } // ok",
|
| + " a: b: while (true) { break c; } // error, no such label",
|
| + " }",
|
| + "}"),
|
| + ErrorExpectation.errEx(ResolverErrorCode.CANNOT_RESOLVE_LABEL, 6, 32, 1));
|
| + }
|
| +
|
| public void test_new_noSuchType() throws Exception {
|
| resolveAndTest(Joiner.on("\n").join(
|
| "class Object {}",
|
|
|