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

Unified Diff: sdk/lib/_internal/compiler/implementation/warnings.dart

Issue 12045015: Disallow mixing in classes where the superclass != Object. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Improve error message. Created 7 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
« no previous file with comments | « sdk/lib/_internal/compiler/implementation/resolution/members.dart ('k') | tests/language/language.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/_internal/compiler/implementation/warnings.dart
diff --git a/sdk/lib/_internal/compiler/implementation/warnings.dart b/sdk/lib/_internal/compiler/implementation/warnings.dart
index 6a5f4a76aa1466b9cb1295e5cd42e47888aa7f51..7790d9ad5fa5ae9725aeb4fecd7cbc7a8d26ef3a 100644
--- a/sdk/lib/_internal/compiler/implementation/warnings.dart
+++ b/sdk/lib/_internal/compiler/implementation/warnings.dart
@@ -306,6 +306,9 @@ class MessageKind {
static const ILLEGAL_MIXIN_APPLICATION_MODIFIERS = const MessageKind(
"Error: illegal mixin application modifiers: #{1}.");
+ static const ILLEGAL_MIXIN_SUPERCLASS = const MessageKind(
+ "Error: class used as mixin must have Object as superclass.");
+
static const PARAMETER_NAME_EXPECTED = const MessageKind(
"Error: parameter name expected.");
« no previous file with comments | « sdk/lib/_internal/compiler/implementation/resolution/members.dart ('k') | tests/language/language.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698