| Index: compiler/java/com/google/dart/compiler/resolver/ResolutionContext.java
|
| diff --git a/compiler/java/com/google/dart/compiler/resolver/ResolutionContext.java b/compiler/java/com/google/dart/compiler/resolver/ResolutionContext.java
|
| index e5aa3f8d66cdfd575bc43e1737044e16594eb610..31b8e82c403f11c8f3c8e07fd614db90c9911989 100644
|
| --- a/compiler/java/com/google/dart/compiler/resolver/ResolutionContext.java
|
| +++ b/compiler/java/com/google/dart/compiler/resolver/ResolutionContext.java
|
| @@ -247,7 +247,7 @@ public class ResolutionContext implements ResolutionErrorListener {
|
| return typeProvider.getDynamicType();
|
|
|
| default:
|
| - onError(identifier, TypeErrorCode.NOT_A_TYPE, identifier, elementKind);
|
| + onError(identifier, ResolverErrorCode.NOT_A_TYPE, identifier, elementKind);
|
| return typeProvider.getDynamicType();
|
| }
|
| }
|
| @@ -269,14 +269,14 @@ public class ResolutionContext implements ResolutionErrorListener {
|
| if (Elements.isIdentifierName(identifier, "Dynamic")) {
|
| return typeProvider.getDynamicType();
|
| }
|
| - break;
|
| + onError(identifier, errorCode, identifier);
|
| + return typeProvider.getDynamicType();
|
| default:
|
| if (!(identifier instanceof DartSyntheticErrorIdentifier)) {
|
| - onError(identifier, TypeErrorCode.NOT_A_TYPE, identifier, elementKind);
|
| + onError(identifier, ResolverErrorCode.NOT_A_TYPE, identifier, elementKind);
|
| }
|
| + return typeProvider.getDynamicType();
|
| }
|
| - onError(identifier, errorCode, identifier);
|
| - return typeProvider.getDynamicType();
|
| }
|
|
|
| InterfaceType instantiateParameterizedType(ClassElement element, DartNode node,
|
|
|