open capture at top level only when prepare variable type (IDEA-22005)

This commit is contained in:
anna
2013-05-03 20:40:19 +02:00
parent 40b9daec87
commit 352757fd3b
6 changed files with 24 additions and 7 deletions
@@ -0,0 +1,13 @@
class Test {
interface Foo<T> {
void boo(T t);
}
private static void f(Foo<?>... fs) {
fs[0].boo<error descr="'boo(capture<?>)' in 'Test.Foo' cannot be applied to '(java.lang.String)'">("hey!")</error>;
}
private static void f1(Foo<? extends String>... fs) {
fs[0].boo<error descr="'boo(capture<? extends java.lang.String>)' in 'Test.Foo' cannot be applied to '(java.lang.String)'">("hey!")</error>;
}
}