capture wildcards in type casts (IDEA-101862; IDEA-97703)

This commit is contained in:
anna
2013-07-25 18:31:29 +02:00
parent 3165af31d5
commit b6884eab9f
3 changed files with 11 additions and 1 deletions
@@ -0,0 +1,8 @@
import java.util.Collection;
class Foo {
private void test() {
Object x = null;
((java.util.Collection<?>)x).add<error descr="'add(capture<?>)' in 'java.util.Collection' cannot be applied to '(java.lang.String)'">("")</error>;
}
}