mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
open capture at top level only when prepare variable type (IDEA-22005)
This commit is contained in:
+13
@@ -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>;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user