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

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

Issue 12041018: Disallow cyclic mixins. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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
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 977fbf3432a155feb1f03c676b464acd2b423c86..dd7af85657286a3b707b7949aeb15beeb54c8338 100644
--- a/sdk/lib/_internal/compiler/implementation/warnings.dart
+++ b/sdk/lib/_internal/compiler/implementation/warnings.dart
@@ -312,6 +312,9 @@ class MessageKind {
static const ILLEGAL_MIXIN_CONSTRUCTOR = const MessageKind(
"Error: class used as mixin cannot have non-factory constructor.");
+ static const ILLEGAL_MIXIN_CYCLE = const MessageKind(
+ "Error: class used as mixin introduces mixin cycle: #{1} <-> #{2}.");
+
static const PARAMETER_NAME_EXPECTED = const MessageKind(
"Error: parameter name expected.");

Powered by Google App Engine
This is Rietveld 408576698