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 e5d03ab5c6f3df10fe1b72b6dfc8d4f39a41cee6..b3b597d1648081f0dc13b171bfe2c19e60dbc891 100644 |
--- a/compiler/java/com/google/dart/compiler/resolver/ResolverErrorCode.java |
+++ b/compiler/java/com/google/dart/compiler/resolver/ResolverErrorCode.java |
@@ -27,7 +27,7 @@ public enum ResolverErrorCode implements ErrorCode { |
CANNOT_CALL_FUNCTION_TYPE_ALIAS("Function type aliases cannot be called"), |
// TODO(zundel): error message needs JUnit test - how to test #imports in junit? |
CANNOT_CALL_LIBRARY_PREFIX("Library prefixes cannot be called"), |
- CANNOT_DECLARE_NON_FACTORY_CONSTRUCTOR( |
+ CANNOT_DECLARE_NON_FACTORY_CONSTRUCTOR(ErrorSeverity.WARNING, |
"Cannot declare a non-factory named constructor of another class."), |
CANNOT_HIDE_IMPORT_PREFIX("Cannot hide import prefix '%s'"), |
CANNOT_INIT_STATIC_FIELD_IN_INITIALIZER("Cannot initialize a static field in an initializer list"), |