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

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

Issue 10836281: Issue 4523. Analyzer should require two type arguments for map literals (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 4 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 f2682d0f2c92483f4482b72f58fd107c52be4c45..6cf2abeb5e816a4fe809cbd87aa1be6f2d46bfe3 100644
--- a/compiler/java/com/google/dart/compiler/resolver/ResolverErrorCode.java
+++ b/compiler/java/com/google/dart/compiler/resolver/ResolverErrorCode.java
@@ -81,7 +81,7 @@ public enum ResolverErrorCode implements ErrorCode {
"Constructor '%s' in '%s' has named parameters %s, doesn't match '%s' in '%s' with %s"),
DEFAULT_MUST_SPECIFY_CLASS("default must indicate a class, not an interface"),
DEPRECATED_MAP_LITERAL_SYNTAX(ErrorSeverity.WARNING,
- "Deprecated Map literal syntax. Only specify a single value type as a type argument."),
+ "Deprecated Map literal syntax. Both String (as key) and value type arguments required."),
DID_YOU_MEAN_NEW("%1$s is a %2$s. Did you mean (new %1$s)?"),
DUPLICATE_INITIALIZATION("Duplicate initialization of '%s'"),
DUPLICATE_FUNCTION_EXPRESSION("Duplicate function expression '%s'"),

Powered by Google App Engine
This is Rietveld 408576698