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

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

Issue 272803002: Issue 18653. Report error for a const constructor in a class with a mixin. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 7 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 506bde1a82f6ec5d78a70c373d7431a0e2ab92b7..c33a3a56e15d3d01cf133ddfbdb3632bdce6eb89 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
@@ -139,9 +139,19 @@ public enum CompileTimeErrorCode implements ErrorCode {
* 7.6.3 Constant Constructors: The superinitializer that appears, explicitly or implicitly, in
* the initializer list of a constant constructor must specify a constant constructor of the
* superclass of the immediately enclosing class or a compile-time error occurs.
+ * <p>
+ * 9 Mixins: For each generative constructor named ... an implicitly declared constructor named
+ * ... is declared.
+ */
+ CONST_CONSTRUCTOR_WITH_MIXIN("Constant constructor cannot be declared for a class with a mixin"),
+
+ /**
+ * 7.6.3 Constant Constructors: The superinitializer that appears, explicitly or implicitly, in
+ * the initializer list of a constant constructor must specify a constant constructor of the
+ * superclass of the immediately enclosing class or a compile-time error occurs.
*/
CONST_CONSTRUCTOR_WITH_NON_CONST_SUPER(
- "Constant constructor cannot call non-constant super constructor"),
+ "Constant constructor cannot call non-constant super constructor of '%s'"),
/**
* 7.6.3 Constant Constructors: It is a compile-time error if a constant constructor is declared
« 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