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

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

Issue 9158014: Disallow assignment to a top level method in dartc (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 11 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 003ae24e1a818cbf04ba7a2ccc1bdf71eeb39fff..34170b15ba4982ce3503ab424c43d38528358ca8 100644
--- a/compiler/java/com/google/dart/compiler/resolver/ResolverErrorCode.java
+++ b/compiler/java/com/google/dart/compiler/resolver/ResolverErrorCode.java
@@ -16,6 +16,7 @@ public enum ResolverErrorCode implements ErrorCode {
CANNOT_ACCESS_OUTER_LABEL("Cannot access label %s declared in an outer function"),
CANNOT_ACCESS_FIELD_IN_INIT("Cannot access an instance field in an initializer expression"),
CANNOT_ASSIGN_TO_FINAL("cannot assign value to final variable \"%s\"."),
+ CANNOT_ASSIGN_TO_METHOD("cannot assign value to method '%s'."),
CANNOT_BE_RESOLVED("cannot resolve %s"),
CANNOT_BE_RESOLVED_LIBRARY("cannot resolve %s in library %s"),
CANNOT_BE_INITIALIZED("cannot be initialized"),

Powered by Google App Engine
This is Rietveld 408576698