| Index: compiler/javatests/com/google/dart/compiler/resolver/ResolverTest.java
|
| ===================================================================
|
| --- compiler/javatests/com/google/dart/compiler/resolver/ResolverTest.java (revision 11901)
|
| +++ compiler/javatests/com/google/dart/compiler/resolver/ResolverTest.java (working copy)
|
| @@ -1365,6 +1365,15 @@
|
| errEx(ResolverErrorCode.EXPECTED_CONSTANT_EXPRESSION, 3, 14, 12));
|
| }
|
|
|
| + public void test_const_undefinedClass() {
|
| + resolveAndTest(Joiner.on("\n").join(
|
| + "class Object {}",
|
| + "main() {",
|
| + " const A();",
|
| + "}"),
|
| + errEx(TypeErrorCode.NO_SUCH_TYPE_CONST, 3, 8, 1));
|
| + }
|
| +
|
| public void testNoGetterOrSetter() {
|
| resolveAndTest(Joiner.on("\n").join(
|
| "class Object {}",
|
|
|