method references: allow access to protected methods through super (IDEA-217862)

GitOrigin-RevId: f1d86f6127a64146e87998423f3034e38a46409c
This commit is contained in:
Anna Kozlova
2019-08-05 23:03:36 +03:00
committed by intellij-monorepo-bot
parent 186dadfbac
commit 616e3ca030
5 changed files with 30 additions and 3 deletions
@@ -0,0 +1,11 @@
package b;
import a.A;
import java.util.function.Consumer;
class B extends A {
public Consumer<Integer> callFoo() {
return super::foo;
}
}