| Index: compiler/java/com/google/dart/compiler/resolver/ResolverErrorCode.java
|
| diff --git a/compiler/java/com/google/dart/compiler/resolver/ResolverErrorCode.java b/compiler/java/com/google/dart/compiler/resolver/ResolverErrorCode.java
|
| index e06d92a8ebd4f2da0d935d7dc57fa73fd4bb4a16..ddcad12eb250d6bdb3b18343b8beae16d3f863e1 100644
|
| --- a/compiler/java/com/google/dart/compiler/resolver/ResolverErrorCode.java
|
| +++ b/compiler/java/com/google/dart/compiler/resolver/ResolverErrorCode.java
|
| @@ -40,6 +40,8 @@ public enum ResolverErrorCode implements ErrorCode {
|
| DID_YOU_MEAN_NEW("%1$s is a %2$s. Did you mean (new %1$s)?"),
|
| DUPLICATE_DEFINITION("duplicate definition of %s"),
|
| DUPLICATED_INTERFACE("%s and %s are duplicated in the supertype graph"),
|
| + DYNAMIC_EXTENDS("Dynamic can not be used as superclass"),
|
| + DYNAMIC_IMPLEMENTS("Dynamic can not be used as superinterface"),
|
| EXPECTED_AN_INSTANCE_FIELD_IN_SUPER_CLASS(
|
| "expected an instance field in the super class, but got %s"),
|
| EXPECTED_CONSTANT_EXPRESSION("Expected constant expression"),
|
| @@ -75,7 +77,14 @@ public enum ResolverErrorCode implements ErrorCode {
|
| "name clashes with a previously defined member at %sline %d column %d"),
|
| NEW_EXPRESSION_NOT_CONSTRUCTOR("New expression does not resolve to a constructor"),
|
| NEW_EXPRESSION_CANT_USE_TYPE_VAR("New expression cannot be invoked on type variable"),
|
| - NO_SUCH_TYPE("no such type \"%s\""),
|
| + NO_SUCH_TYPE_EXTENDS("no such type \"%s\" in extends"),
|
| + NO_SUCH_TYPE_IMPLEMENTS("no such type \"%s\" in implements"),
|
| + NO_SUCH_TYPE_GENERICS_CLASS_UPPER_BOUND("no such type \"%s\" in class type parameter bound"),
|
| + NO_SUCH_TYPE_GENERICS_METHOD_UPPER_BOUND("no such type \"%s\" in method type parameter bound"),
|
| + NO_SUCH_TYPE_CONSTRUCTOR("no such type \"%s\" in constructor"),
|
| + NO_SUCH_TYPE_IN_EXPRESSION("no such type \"%s\" in expression"),
|
| + NO_SUCH_TYPE_IN_CATCH("no such type \"%s\" in catch clause"),
|
| + NO_SUCH_TYPE_NEW("no such type \"%s\" in 'new' invocation"),
|
| NOT_A_CLASS("\"%s\" is not a class"),
|
| NOT_A_CLASS_OR_INTERFACE("\"%s\" is not a class or interface"),
|
| NOT_A_LABEL("\"%s\" is not a label"),
|
|
|