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

Unified Diff: tests/language/mixin_mixin_test.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: 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: tests/language/mixin_mixin_test.dart
diff --git a/tests/language/mixin_mixin_test.dart b/tests/language/mixin_mixin_test.dart
index c4716f32ebfae6304cfbd3ec492c0d5a15c9319b..f6d2f3507fe35838ff5ec8b3ff3460fac62d7976 100644
--- a/tests/language/mixin_mixin_test.dart
+++ b/tests/language/mixin_mixin_test.dart
@@ -2,9 +2,10 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-class S { }
class M1 { foo() => 42; }
-typedef M2 = S with M1;
+typedef M2 = Object with M1;
+
+class S { }
typedef C = S with M2;
main() {

Powered by Google App Engine
This is Rietveld 408576698