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

This commit is contained in:
Anna Kozlova
2018-02-27 12:04:42 +01:00
parent 006a8d28a4
commit f295742259
4 changed files with 35 additions and 17 deletions

View File

@@ -0,0 +1,11 @@
interface I {
static <Z> void foo() { }
}
class A implements I {
{
System.out.println(A./*c1*/foo());
Runnable r = A/*c2*/::<String>foo;
System.out.println(r);
}
}