check function type's parameters/return type accessibility (IDEA-181036)

This commit is contained in:
Anna.Kozlova
2017-10-25 19:50:25 +02:00
parent c415cde83e
commit f4166d3f05
3 changed files with 35 additions and 4 deletions
@@ -0,0 +1,9 @@
package p;
import test.*;
class Test {
{
I i = <error descr="'test.A' is not public in 'test'. Cannot be accessed from outside package">(a) -> {}</error>;
J j = <error descr="'test.A' is not public in 'test'. Cannot be accessed from outside package">() -> null</error>;
}
}