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

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

Issue 10735039: Issue 3986. Class member cannot have the same name as the class (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 5 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 840a1a2050f2ad02fb6542178b3c2ba4822afe7c..1ee84edf27df1e4fc530b8aff9fde726f458d003 100644
--- a/compiler/java/com/google/dart/compiler/resolver/ResolverErrorCode.java
+++ b/compiler/java/com/google/dart/compiler/resolver/ResolverErrorCode.java
@@ -149,6 +149,7 @@ public enum ResolverErrorCode implements ErrorCode {
// TODO(zundel): error message needs JUnit test (requires development mode checks)
MAP_LITERAL_ELEMENT_TYPE(
"Map literal element type must match declaration '%s' when type checks are on."),
+ MEMBER_WITH_NAME_OF_CLASS("Class member should not have same name as the enclosing class"),
Brian Wilkerson 2012/07/11 14:54:15 nit: "same" --> "the same"
METHOD_MUST_HAVE_BODY("A non-abstract method must have a body"),
NAMED_PARAMETERS_CANNOT_START_WITH_UNDER("Named parameters cannot start with an '_' character"),
NEW_EXPRESSION_CANT_USE_TYPE_VAR("New expression cannot be invoked on type variable"),

Powered by Google App Engine
This is Rietveld 408576698