proceed to check method call args if unknown type args were specified in java 7 (IDEA-97521)

This commit is contained in:
anna
2012-12-17 13:29:15 +01:00
parent fe11c055ab
commit 125ba5424d
3 changed files with 17 additions and 2 deletions
@@ -0,0 +1,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);
}