blob: 5bfe17caf57c446632815a7a6ea572e09f1fe18e (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
class TcpConnection extends ClientConnection {
ConnectionEventDelegate<? extends ClientConnection> eventDelegate;
{
eventDelegate.<ClientConnection> onDisconnect<error descr="'onDisconnect(capture<? extends ClientConnection>)' in 'ConnectionEventDelegate' cannot be applied to '(TcpConnection)'">(this)</error>;
}
}
class ClientConnection {}
interface ConnectionEventDelegate<T extends ClientConnection> {
void onDisconnect(T t);
}
|