mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 00:11:26 +07:00
false positive in redundant cast: applicable method with inference error (IDEA-186224)
This commit is contained in:
+14
@@ -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) { }
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user