mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 03:13:40 +07:00
do not open wildcards accessing elements of array (IDEA-57285)
This commit is contained in:
+12
@@ -0,0 +1,12 @@
|
||||
package pck;
|
||||
|
||||
abstract class A<S> {
|
||||
S y;
|
||||
void bar(A<? extends int[]> x){
|
||||
Object obj = <error descr="Array type expected; found: 'capture<? extends int[]>'">x.y</error>[0];
|
||||
}
|
||||
|
||||
void baz(A<? super int[]> x){
|
||||
Object obj = <error descr="Array type expected; found: 'capture<? super int[]>'">x.y</error>[0];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user