Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/advHighlighting7/AccessToStaticMethodsFromInterfaces.java

14 lines
564 B
Java

class Test {
interface I {
<error descr="Extension methods are not supported at this language level">static void foo() {}</error>
}
abstract class IImpl implements I {}
interface I2 extends I {}
{
<error descr="Static interface method invocations are not supported at this language level">I.foo();</error>
<error descr="Static interface method invocations are not supported at this language level">IImpl.foo();</error>
<error descr="Static interface method invocations are not supported at this language level">I2.foo();</error>
}
}