| OLD | NEW |
| 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, 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 abstract class IPeer<C extends IP2PClient> { | 5 abstract class IPeer<C extends IP2PClient> {} |
| 6 } | |
| 7 | 6 |
| 8 abstract class IPeerRoom<P extends IPeer, C extends IP2PClient> { | 7 abstract class IPeerRoom<P extends IPeer, C extends IP2PClient> {} |
| 9 } | |
| 10 | 8 |
| 11 abstract class IP2PClient<R extends IPeerRoom> { | 9 abstract class IP2PClient<R extends IPeerRoom> {} |
| 12 | 10 |
| 13 } | 11 class _Peer<C extends _P2PClient> implements IPeer<C> {} |
| 14 | |
| 15 class _Peer<C extends _P2PClient> implements IPeer<C> { | |
| 16 | |
| 17 } | |
| 18 | 12 |
| 19 class _PeerRoom<P extends _Peer, C extends _P2PClient> | 13 class _PeerRoom<P extends _Peer, C extends _P2PClient> |
| 20 implements IPeerRoom<P, C> { | 14 implements IPeerRoom<P, C> {} |
| 21 | |
| 22 } | |
| 23 | 15 |
| 24 abstract class _P2PClient<R extends _PeerRoom, P extends _Peer> | 16 abstract class _P2PClient<R extends _PeerRoom, P extends _Peer> |
| 25 implements IP2PClient<R> { | 17 implements IP2PClient<R> {} |
| 26 | 18 |
| 27 } | 19 void main() {} |
| 28 | |
| 29 void main() { | |
| 30 } | |
| OLD | NEW |