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

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

Issue 9289029: Added runtime type checking to the elements of list and map literals 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 b15246d70788b2d47ed789504269234bd9e31de6..67ff41bf28759ca565cda88b450087a60d6cfd00 100644
--- a/compiler/java/com/google/dart/compiler/resolver/ResolverErrorCode.java
+++ b/compiler/java/com/google/dart/compiler/resolver/ResolverErrorCode.java
@@ -109,6 +109,10 @@ public enum ResolverErrorCode implements ErrorCode {
IS_A_CLASS("%s is a class and cannot be used as an expression"),
IS_A_CONSTRUCTOR("%s.%s is a constructor, expected a method"),
IS_AN_INSTANCE_METHOD("%s.%s is an instance method, not a static method"),
+ LIST_LITERAL_ELEMENT_TYPE(
+ "List literal element type must match declaration '%s' when type checks are on."),
+ MAP_LITERAL_ELEMENT_TYPE(
+ "Map literal element type must match declaration '%s' when type checks are on."),
METHOD_MUST_HAVE_BODY("A non-abstract method must have a body"),
NEW_EXPRESSION_CANT_USE_TYPE_VAR("New expression cannot be invoked on type variable"),
NEW_EXPRESSION_NOT_CONSTRUCTOR("New expression does not resolve to a constructor"),

Powered by Google App Engine
This is Rietveld 408576698