overload resolution: same signatures should not check return types, etc already processed in hierarchical signatures (IDEA-172129)

This commit is contained in:
Anna.Kozlova
2017-04-28 20:04:34 +02:00
parent ee750f165b
commit b893701408
3 changed files with 15 additions and 83 deletions

View File

@@ -0,0 +1,8 @@
import java.util.function.Consumer;
class Foo {
private static Consumer<Object> consumer = Foo::vaMethod;
private static <T> T vaMethod(Object... varargs) {
return null;
}
}