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

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

Issue 12033049: Disallow mixing in classes that use 'super'. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Merge from master. 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 dd7af85657286a3b707b7949aeb15beeb54c8338..3d9c1da2b03bfb303f502b3079fb34595c6b6215 100644
--- a/sdk/lib/_internal/compiler/implementation/warnings.dart
+++ b/sdk/lib/_internal/compiler/implementation/warnings.dart
@@ -315,6 +315,12 @@ class MessageKind {
static const ILLEGAL_MIXIN_CYCLE = const MessageKind(
"Error: class used as mixin introduces mixin cycle: #{1} <-> #{2}.");
+ static const ILLEGAL_MIXIN_WITH_SUPER = const MessageKind(
+ "Error: cannot use class #{1} as a mixin because it uses super.");
+
+ static const ILLEGAL_MIXIN_SUPER_USE = const MessageKind(
+ "Use of super in class used as mixin.");
+
static const PARAMETER_NAME_EXPECTED = const MessageKind(
"Error: parameter name expected.");

Powered by Google App Engine
This is Rietveld 408576698