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

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

Issue 14773018: Report MIXIN_INHERITS_FROM_NOT_OBJECT (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Tweaks for review comments Created 7 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/type/InterfaceTypeImpl.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 95ad80343d00ae09477739b2828a93b13ab73985..3ab6046ab89775ac5e090fcc0b3446fd5356239f 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
@@ -571,20 +571,24 @@ public enum CompileTimeErrorCode implements ErrorCode {
/**
* 9 Mixins: It is a compile-time error if a declared or derived mixin explicitly declares a
* constructor.
+ *
+ * @param typeName the name of the mixin that is invalid
*/
- MIXIN_DECLARES_CONSTRUCTOR("Class '%s' declares constructor and cannot be used as a mixin"),
+ MIXIN_DECLARES_CONSTRUCTOR(
+ "The class '%s' cannot be used as a mixin because it declares a constructor"),
/**
* 9 Mixins: It is a compile-time error if a mixin is derived from a class whose superclass is not
* Object.
+ *
+ * @param typeName the name of the mixin that is invalid
*/
- MIXIN_INHERITS_FROM_NOT_OBJECT(""),
+ MIXIN_INHERITS_FROM_NOT_OBJECT(
+ "The class '%s' cannot be used as a mixin because it extends a class other than Object"),
/**
* 9.1 Mixin Application: It is a compile-time error if <i>M</i> does not denote a class or mixin
* available in the immediately enclosing scope.
- *
- * @param typeName the name of the mixin that was not found
*/
MIXIN_OF_NON_CLASS("Classes can only mixin other classes"),
« no previous file with comments | « no previous file | editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/type/InterfaceTypeImpl.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698