Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | |
| 2 // for details. All rights reserved. Use of this source code is governed by a | |
| 3 // BSD-style license that can be found in the LICENSE file. | |
| 4 | |
| 5 library lib1; | |
| 6 | |
| 7 import "deferred_mixin_shared.dart"; | |
| 8 import "deferred_mixin_test.dart"; | |
| 9 | |
| 10 class Mixin { | |
| 11 foo() => "lib1.Mixin"; | |
| 12 } | |
| 13 | |
| 14 class A extends Object with NonDeferredMixin { | |
|
floitsch
2014/12/11 18:18:09
Use different mixins. Otherwise one of the uses mi
sigurdm
2014/12/12 13:40:34
Done.
| |
| 15 foo() { | |
| 16 return "A with " + super.foo(); | |
| 17 } | |
| 18 } | |
| 19 | |
| 20 class B extends Object with Mixin { | |
| 21 foo() { | |
| 22 return "B with " + super.foo(); | |
| 23 } | |
| 24 } | |
| 25 | |
| 26 class C extends Object with Mixin, NonDeferredMixin { | |
| 27 foo() { | |
| 28 return "C with " + super.foo(); | |
| 29 } | |
| 30 } | |
| 31 | |
| 32 class D extends Object with NonDeferredMixin, Mixin { | |
| 33 foo() { | |
| 34 return "D with " + super.foo(); | |
| 35 } | |
| 36 } | |
| 37 | |
| 38 class E extends Object with SharedMixin { | |
| 39 foo() { | |
| 40 return "E with " + super.foo(); | |
| 41 } | |
| 42 } | |
| OLD | NEW |