Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1547)

Unified Diff: compiler/java/com/google/dart/compiler/resolver/ResolverErrorCode.java

Issue 10520019: Issue 3271. Top-level function 'main' should not have parameters (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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"),

Powered by Google App Engine
This is Rietveld 408576698