test data for not accessible through captured wildcard

This commit is contained in:
Anna Kozlova
2015-02-10 17:55:57 +01:00
parent a6ef814ce8
commit 3318c68aad
@@ -3,4 +3,8 @@ abstract class B {
void f(A a) {
<error descr="Cannot access java.util.stream.Stream">a</error>.foo();
}
void f(java.util.List<? extends A> a) {
<error descr="Cannot access java.util.stream.Stream">a.get(0)</error>.foo();
}
}