method refs: do not accept static varargs methods by receiver (IDEA-128534)

This commit is contained in:
Anna Kozlova
2014-08-13 13:33:15 +04:00
parent 95ca6f64c7
commit b9ae8339d6
3 changed files with 16 additions and 1 deletions

View File

@@ -0,0 +1,10 @@
import java.util.Set;
class Test {
public static void foo(String[] args, final Set<Test> singleton) {
singleton.forEach(Test::m);
}
public static void m(Test... others) {}
}