| OLD | NEW |
| (Empty) | |
| 1 // Copyright (c) 2013, 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 import "package:expect/expect.dart"; |
| 6 |
| 7 class S<T> { |
| 8 s() { return T; } |
| 9 } |
| 10 |
| 11 class M<T> { |
| 12 m() { return T; } |
| 13 } |
| 14 |
| 15 class N<T> { |
| 16 n() { return T; } |
| 17 } |
| 18 |
| 19 class C<U, V> extends S<Map<U, V>> with M<List<U>>, N<Set<V>> { } |
| 20 |
| 21 main() { |
| 22 var c = new C<int, bool>(); |
| 23 Expect.isTrue(c is S<Map<int, bool>>); |
| 24 Expect.equals("Map<int, bool>", c.s().toString()); |
| 25 Expect.isTrue(c is M<List<int>>); |
| 26 Expect.equals("List<int>", c.m().toString()); |
| 27 Expect.isTrue(c is N<Set<bool>>); |
| 28 Expect.equals("Set<bool>", c.n().toString()); |
| 29 } |
| OLD | NEW |