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 0d4727ee8d87449d6bc33c499f43428def3a1d26..b77604c1aecd12b8931bb7be3de9e2b6cfd25e89 100644 |
--- a/compiler/java/com/google/dart/compiler/resolver/ResolverErrorCode.java |
+++ b/compiler/java/com/google/dart/compiler/resolver/ResolverErrorCode.java |
@@ -13,6 +13,7 @@ import com.google.dart.compiler.SubSystem; |
public enum ResolverErrorCode implements ErrorCode { |
BLACK_LISTED_EXTENDS("'%s' can not be used as superclass"), |
BLACK_LISTED_IMPLEMENTS("'%s' can not be used as superinterface"), |
+ BLACK_LISTED_MIXINS("'%s' can not be used as mixin"), |
BREAK_LABEL_RESOLVES_TO_CASE_OR_DEFAULT("break label resolves to case or default statement"), |
BUILT_IN_IDENTIFIER_AS_TYPE("Built-in identifier '%s' cannot be used as a type annotation"), |
CANNOT_ACCESS_FIELD_IN_INIT("Cannot access an instance field in an initializer expression"), |
@@ -100,6 +101,7 @@ public enum ResolverErrorCode implements ErrorCode { |
DUPLICATE_PARAMETER("Duplicate parameter '%s'"), |
DUPLICATE_TOP_LEVEL_DECLARATION("duplicate top-level declaration %s at %s"), |
DUPLICATE_TYPE_VARIABLE("Duplicate type variable '%s'"), |
+ DUPLICATE_WITH_TYPE("Duplicate type in the with clause"), |
// TODO(zundel): error message needs JUnit test, (reachable code?) |
EXPECTED_AN_INSTANCE_FIELD_IN_SUPER_CLASS( |
"expected an instance field in the super class, but got %s"), |
@@ -197,6 +199,7 @@ public enum ResolverErrorCode implements ErrorCode { |
STATIC_FINAL_REQUIRES_VALUE("Static final fields must have an initial value"), |
STATIC_METHOD_MUST_HAVE_BODY("Static method must have a body"), |
SUPER_CLASS_IN_IMPLEMENTS("Superclass in implements clause"), |
+ SUPER_CLASS_IN_WITH("Superclass in with clause"), |
SUPER_IN_FACTORY_CONSTRUCTOR("Cannot use 'super' in a factory constructor"), |
SUPER_IN_STATIC_METHOD("Cannot use 'super' in a static method"), |
SUPER_OUTSIDE_OF_CONSTRUCTOR("Cannot use 'super' constructor outside of a constructor"), |