Index: compiler/javatests/com/google/dart/compiler/resolver/ResolverCompilerTest.java |
diff --git a/compiler/javatests/com/google/dart/compiler/resolver/ResolverCompilerTest.java b/compiler/javatests/com/google/dart/compiler/resolver/ResolverCompilerTest.java |
index 1c718283624d7bc2280f773f0ee03c30c792da15..b60d8b454ec4a7ef7c6089fcd62b5208fe5bf772 100644 |
--- a/compiler/javatests/com/google/dart/compiler/resolver/ResolverCompilerTest.java |
+++ b/compiler/javatests/com/google/dart/compiler/resolver/ResolverCompilerTest.java |
@@ -216,7 +216,7 @@ public class ResolverCompilerTest extends CompilerTestCase { |
"}"); |
assertErrors( |
libraryResult.getErrors(), |
- errEx(ResolverErrorCode.NEW_EXPRESSION_NOT_CONSTRUCTOR, 5, 11, 3)); |
+ errEx(TypeErrorCode.NEW_EXPRESSION_NOT_CONSTRUCTOR, 5, 11, 3)); |
DartUnit unit = libraryResult.getLibraryUnitResult().getUnits().iterator().next(); |
DartNewExpression newExpression = findNodeBySource(unit, "new A.foo()"); |
ConstructorElement constructorElement = newExpression.getElement(); |