false positive in redundant cast: applicable method with inference error (IDEA-186224)

This commit is contained in:
Anna.Kozlova
2018-02-07 09:44:28 +01:00
parent fb4af6202b
commit be6d0a2981
3 changed files with 17 additions and 1 deletions
@@ -0,0 +1,14 @@
import java.util.function.Function;
class Test {
static class Node { }
static class ValueNode extends Node {}
static void m(ValueNode v, Node n) {
pathToCustomNode((Node)v, current -> n);
}
public static <T> void pathToCustomNode(T node, Function<T, T> getParent) { }
}