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

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

Issue 15888009: Fix http://dartbug.com/8669 by making sure we do not crash when trying to use Object as a mixin. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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
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 c609c17d1d1a07a8b57bc56e847a4b0cad360dbb..1ab44c1d00d990999bdfb96e37200c1d08ba887f 100644
--- a/sdk/lib/_internal/compiler/implementation/warnings.dart
+++ b/sdk/lib/_internal/compiler/implementation/warnings.dart
@@ -327,6 +327,9 @@ class MessageKind {
static const ILLEGAL_MIXIN_SUPERCLASS = const MessageKind(
"Error: class used as mixin must have Object as superclass.");
+ static const ILLEGAL_MIXIN_OBJECT = const MessageKind(
+ "Error: cannot use Object as mixin.");
+
static const ILLEGAL_MIXIN_CONSTRUCTOR = const MessageKind(
"Error: class used as mixin cannot have non-factory constructor.");

Powered by Google App Engine
This is Rietveld 408576698