| OLD | NEW |
| 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 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. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 class B extends Object with M1, M2 { |
| 6 B(value); |
| 7 } |
| 8 |
| 5 abstract class M1 { | 9 abstract class M1 { |
| 6 m() => print("M1"); | 10 m() => print("M1"); |
| 7 } | 11 } |
| 8 | 12 |
| 9 abstract class M2 { | 13 abstract class M2 { |
| 10 m() => print("M2"); | 14 m() => print("M2"); |
| 11 } | 15 } |
| 12 | 16 |
| 13 class C extends Object with M1, M2 { | 17 class C extends Object with M1, M2 { |
| 18 C(value); |
| 19 } |
| 20 |
| 21 abstract class G1<T> { |
| 22 m() => print(T); |
| 23 } |
| 24 |
| 25 class D<S> extends Object with G1<S> { |
| 14 } | 26 } |
| 15 | 27 |
| 16 main() { | 28 main() { |
| 17 new C().m(); | 29 new B(null).m(); |
| 30 new C(null).m(); |
| 31 new D().m(); |
| 32 new D<int>().m(); |
| 33 new D<List<int>>().m(); |
| 18 } | 34 } |
| OLD | NEW |