OLD | NEW |
---|---|
(Empty) | |
1 // Copyright (c) 2017, 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 abstract class A<T extends A<T>> {} | |
6 | |
7 abstract class B<T extends A<T>> {} | |
8 | |
9 class C<U> extends B<D<U>> {} | |
10 | |
11 class D<U> extends A<D<U>> {} | |
12 | |
13 main() { | |
14 new D(); | |
15 new C(); | |
16 new D<C>(); | |
17 new C<D>(); | |
18 } | |
OLD | NEW |