blob: 5bfe17caf57c446632815a7a6ea572e09f1fe18e [file] [log] [blame]
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);
}