captured wildcard: access object should be placed to the same package (IDEA-151766)

This commit is contained in:
Anna Kozlova
2016-02-16 18:15:03 +01:00
parent 8fdf37e038
commit 7dd0db8963
3 changed files with 18 additions and 1 deletions
@@ -0,0 +1,8 @@
import java.util.Map;
class Test {
void f() {}
void m(Map<String, ? extends Test> map, String name) {
map.get(name).f();
}
}