mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 06:11:42 +07:00
error for not accessible types mentioned by inferred functional type (IDEA-143417)
This commit is contained in:
+18
@@ -0,0 +1,18 @@
|
||||
|
||||
import java.util.function.Consumer;
|
||||
|
||||
class Test {
|
||||
{
|
||||
consume(<error descr="'Outer.A' has private access in 'Outer'">o -> {}</error>, new Outer.B(), new Outer.C());
|
||||
consume(<error descr="'Outer.A' has private access in 'Outer'">Test::foo</error>, new Outer.B(), new Outer.C());
|
||||
}
|
||||
|
||||
private static void foo(Object o) {}
|
||||
private static <T> void consume(Consumer<T> c, T... element) {}
|
||||
}
|
||||
|
||||
class Outer {
|
||||
private static class A {}
|
||||
public static class B extends A {}
|
||||
public static class C extends A {}
|
||||
}
|
||||
Reference in New Issue
Block a user