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

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

Issue 9169013: Issue 1099: Compile time error for RHS this access in initializer (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Failing JUnit opt test 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..5c69b4522c243983a420f8426445a75c5be0425a 100644
--- a/compiler/java/com/google/dart/compiler/resolver/ResolverErrorCode.java
+++ b/compiler/java/com/google/dart/compiler/resolver/ResolverErrorCode.java
@@ -132,6 +132,7 @@ public enum ResolverErrorCode implements ErrorCode {
SUPER_OUTSIDE_OF_METHOD("Cannot use 'super' outside of a method"),
SUPER_ON_TOP_LEVEL("Cannot use 'super' in a top-level element"),
THIS_IN_STATIC_METHOD("Cannot use 'this' in a static method"),
+ THIS_IN_INITIALIZER_AS_EXPRESSION("Cannot reference 'this' as expression in initializer list"),
THIS_ON_TOP_LEVEL("Cannot use 'this' in a top-level element"),
THIS_OUTSIDE_OF_METHOD("Cannot use 'this' outside of a method"),
THIS_IN_FACTORY_CONSTRUCTOR("Cannot use 'this' in a factory constructor"),

Powered by Google App Engine
This is Rietveld 408576698