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

Unified Diff: editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/error/CompileTimeErrorCode.java

Issue 26582002: Report CONST_MAP_KEY_EXPRESSION_TYPE_IMPLEMENTS_EQUALS. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 2 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
« no previous file with comments | « no previous file | editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/verifier/ErrorVerifier.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/error/CompileTimeErrorCode.java
diff --git a/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/error/CompileTimeErrorCode.java b/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/error/CompileTimeErrorCode.java
index 7f0f1ceafcea0128181f99195603b18b79e96361..2c99c6a6acbca36b186df3f0014f8484c2249b67 100644
--- a/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/error/CompileTimeErrorCode.java
+++ b/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/error/CompileTimeErrorCode.java
@@ -171,6 +171,14 @@ public enum CompileTimeErrorCode implements ErrorCode {
CONST_INSTANCE_FIELD("Only static fields can be declared as 'const'"),
/**
+ * 12.8 Maps: It is a compile-time error if the key of an entry in a constant map literal is an
+ * instance of a class that implements the operator <i>==</i> unless the key is a string or
+ * integer.
+ */
+ CONST_MAP_KEY_EXPRESSION_TYPE_IMPLEMENTS_EQUALS(
+ "The constant map entry key expression type '%s' cannot override the == operator"),
+
+ /**
* 5 Variables: A constant variable must be initialized to a compile-time constant (12.1) or a
* compile-time error occurs.
*
« no previous file with comments | « no previous file | editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/verifier/ErrorVerifier.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698