mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-19 10:20:56 +07:00
21 lines
470 B
Java
21 lines
470 B
Java
interface I {
|
|
static <Z> void foo() { }
|
|
}
|
|
|
|
class A implements I {
|
|
{
|
|
System.out.println(A./*c1*/<error descr="Static method may only be called on its containing interface">foo</error>());
|
|
Runnable r = <error descr="Static method may only be called on its containing interface">A/*c2*/::<String>foo;</error>
|
|
System.out.println(r);
|
|
}
|
|
}
|
|
|
|
class B {
|
|
static void foo() {}
|
|
}
|
|
|
|
class C extends B {
|
|
{
|
|
Runnable r = C::foo;
|
|
}
|
|
} |