Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/advHighlighting7/AccessToStaticMethodsFromInterfaces.java
Anna Kozlova 4587a18b23 testdata fixed
2015-04-28 16:46:37 +02:00

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>
IImpl.<error descr="Static interface method invocations are not supported at this language level">foo</error>();
I2.<error descr="Static interface method invocations are not supported at this language level">foo</error>();
}
}