mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 00:11:26 +07:00
lambda/method refs: check functional interface accessibility
This commit is contained in:
+17
@@ -0,0 +1,17 @@
|
||||
class Outer {
|
||||
|
||||
private interface Inner {
|
||||
void m();
|
||||
}
|
||||
|
||||
void m(Inner i) {}
|
||||
}
|
||||
|
||||
class Usage {
|
||||
void test(Outer outer) {
|
||||
outer.m(<error descr="'Outer.Inner' has private access in 'Outer'">() -> {}</error>);
|
||||
outer.m(<error descr="'Outer.Inner' has private access in 'Outer'">this::foo</error>);
|
||||
}
|
||||
|
||||
void foo() {}
|
||||
}
|
||||
Reference in New Issue
Block a user