OLD | NEW |
(Empty) | |
| 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 |
| 3 // BSD-style license that can be found in the LICENSE file. |
| 4 |
| 5 abstract class IPeer<C extends IP2PClient> { |
| 6 } |
| 7 |
| 8 abstract class IPeerRoom<P extends IPeer, C extends IP2PClient> { |
| 9 } |
| 10 |
| 11 abstract class IP2PClient<R extends IPeerRoom> { |
| 12 |
| 13 } |
| 14 |
| 15 class _Peer<C extends _P2PClient> implements IPeer<C> { |
| 16 |
| 17 } |
| 18 |
| 19 class _PeerRoom<P extends _Peer, C extends _P2PClient> |
| 20 implements IPeerRoom<P, C> { |
| 21 |
| 22 } |
| 23 |
| 24 abstract class _P2PClient<R extends _PeerRoom, P extends _Peer> |
| 25 implements IP2PClient<R> { |
| 26 |
| 27 } |
| 28 |
| 29 void main() { |
| 30 } |
OLD | NEW |