mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-02 05:50:53 +07:00
Part of IDEA-365344 Create a new Java error highlighter with minimal dependencies (PSI only) GitOrigin-RevId: 5fbcd6d223a0ea3c04bc0d219cff125938470816
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 = A/*c2*/::<String><error descr="Static method may only be called on its containing interface">foo</error>;
|
|
System.out.println(r);
|
|
}
|
|
}
|
|
|
|
class B {
|
|
static void foo() {}
|
|
}
|
|
|
|
class C extends B {
|
|
{
|
|
Runnable r = C::foo;
|
|
}
|
|
} |