do not open wildcards accessing elements of array (IDEA-57285)

This commit is contained in:
anna
2013-05-03 10:17:26 +02:00
parent 4d84932b11
commit e3c5d8ec32
3 changed files with 17 additions and 0 deletions
@@ -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];
}
}