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

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

Issue 9403026: Issue 1575. Allow declare new named parameters in method override. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Style tweaks. Created 8 years, 10 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 af2c280d1f697b735d18c78469eab03a8c534478..7e0a7588327e8a4e4cffe213cbc70acc9ead425d 100644
--- a/compiler/java/com/google/dart/compiler/resolver/ResolverErrorCode.java
+++ b/compiler/java/com/google/dart/compiler/resolver/ResolverErrorCode.java
@@ -26,11 +26,10 @@ public enum ResolverErrorCode implements ErrorCode {
CANNOT_INIT_FIELD_FROM_SUPERCLASS("Cannot initialize a field from a super class"),
CANNOT_INIT_STATIC_FIELD_IN_INITIALIZER("Cannot initialize a static field in an initializer list"),
CANNOT_OVERRIDE_INSTANCE_MEMBER("static member cannot override instance member %s of %s"),
- CANNOT_OVERRIDE_METHOD_WRONG_NUM_PARAMS("cannot override method %s, wrong number of parameters"),
- CANNOT_OVERRIDE_METHOD_NUM_NAMED_PARAMS(
- "cannot override method %s, number of named parameters doesn't match"),
- CANNOT_OVERRIDE_METHOD_ORDER_NAMED_PARAMS(
- "cannot override method %s, order of named parameters doesn't match"),
+ CANNOT_OVERRIDE_METHOD_NUM_REQUIRED_PARAMS(
+ "cannot override method %s, wrong number of required parameters"),
+ CANNOT_OVERRIDE_METHOD_NAMED_PARAMS(
+ "cannot override method %s, named parameters don't match"),
CANNOT_RESOLVE_CONSTRUCTOR("cannot resolve constructor %s"),
CANNOT_RESOLVE_FIELD("cannot resolve field %s"),
CANNOT_RESOLVE_LABEL("cannot resolve label %s"),
@@ -152,7 +151,8 @@ public enum ResolverErrorCode implements ErrorCode {
TYPE_PARAMETERS_MUST_MATCH_EXACTLY(
"Type parameters in default declaration must match referenced class exactly"),
TYPE_VARIABLE_IN_STATIC_CONTEXT("cannot access type variable %s in static context"),
- TYPE_VARIABLE_NOT_ALLOWED_IN_IDENTIFIER("type variables are not allowed in identifier expressions"),
+ TYPE_VARIABLE_NOT_ALLOWED_IN_IDENTIFIER(
+ "type variables are not allowed in identifier expressions"),
WRONG_NUMBER_OF_TYPE_ARGUMENTS("%s: wrong number of type arguments (%d). Expected %d");
private final ErrorSeverity severity;
private final String message;

Powered by Google App Engine
This is Rietveld 408576698