interface static methods in method refs by subclass error (IDEA-187330)

This commit is contained in:
Anna Kozlova
2018-03-07 08:02:41 +01:00
parent 54a49e7777
commit 424081efe0
@@ -4,8 +4,8 @@ interface I {
class A implements I {
{
System.out.println(A./*c1*/foo());
Runnable r = A/*c2*/::<String>foo;
System.out.println(A./*c1*/<error descr="Static method may be invoked on containing interface class only">foo</error>());
Runnable r = <error descr="Static method may be invoked on containing interface class only">A/*c2*/::<String>foo</error>;
System.out.println(r);
}
}