treat captured wildcard type as type parameter type with special upper bound (IDEA-159663)

This commit is contained in:
Anna.Kozlova
2016-08-12 11:06:57 +02:00
parent 4866aa1f89
commit 1839e42715
4 changed files with 51 additions and 21 deletions
@@ -0,0 +1,13 @@
abstract class AbstractBean<B extends AbstractBean<B>> {
abstract B foo();
abstract void bar();
private void bar1() {}
private void getB(AbstractBean<? extends B> bean, B b) {
bean.foo().bar();
bean.foo().<error descr="'bar1()' has private access in 'AbstractBean'">bar1</error>();
}
}