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 2c5e1952c78262e6e2510f137d42c9da6b87fd0f..b06d1c7048955034ee388192dd580bc05397d860 100644 |
--- a/compiler/java/com/google/dart/compiler/resolver/ResolverErrorCode.java |
+++ b/compiler/java/com/google/dart/compiler/resolver/ResolverErrorCode.java |
@@ -115,6 +115,8 @@ public enum ResolverErrorCode implements ErrorCode { |
IS_AN_INSTANCE_METHOD("%s.%s is an instance method, not a static method"), |
LIST_LITERAL_ELEMENT_TYPE( |
"List literal element type must match declaration '%s' when type checks are on."), |
+ MAIN_FUNCTION_PARAMETERS( |
+ ErrorSeverity.WARNING, "Top-level function 'main' should not have parameters."), |
MAP_LITERAL_ELEMENT_TYPE( |
"Map literal element type must match declaration '%s' when type checks are on."), |
METHOD_MUST_HAVE_BODY("A non-abstract method must have a body"), |