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

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

Issue 9081001: Issue 991: Missing compiler errors for uninitialized final fields (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 12 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 1b0022537524852c308bec87d154b1abd0833b4d..0f16eb95f7a609c88c8da56497bf13dacb44aaf5 100644
--- a/compiler/java/com/google/dart/compiler/resolver/ResolverErrorCode.java
+++ b/compiler/java/com/google/dart/compiler/resolver/ResolverErrorCode.java
@@ -45,6 +45,7 @@ public enum ResolverErrorCode implements ErrorCode {
CONST_CONSTRUCTOR_CANNOT_HAVE_BODY("A const constructor cannot have a body"),
CONST_CONSTRUCTOR_MUST_CALL_CONST_SUPER("const constructor must call const super constructor"),
CONSTANTS_MUST_BE_INITIALIZED("constants must be initialized"),
+ FINAL_FIELD_MUST_BE_INITIALIZED("The final field %s must be initialized"),
CYCLIC_CLASS("%s causes a cycle in the supertype graph"),
DEFAULT_CLASS_MUST_HAVE_SAME_TYPE_PARAMS(
"default class must have the same type parameters as declared in the interface"),

Powered by Google App Engine
This is Rietveld 408576698