mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 00:11:26 +07:00
isPertinentToApplicability: check class type parameters if constructor is called with diamonds (IDEA-147619)
This commit is contained in:
+21
@@ -0,0 +1,21 @@
|
||||
import java.util.*;
|
||||
import java.util.function.UnaryOperator;
|
||||
|
||||
class Test {
|
||||
|
||||
public static Optional<String> bar(Optional<String> o) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public <T> D<T> foo(D<T> entries) {
|
||||
return null;
|
||||
}
|
||||
|
||||
{
|
||||
D<UnaryOperator<Optional<String>>> registry = foo(new D<>(Test::bar));
|
||||
}
|
||||
|
||||
static class D<V> {
|
||||
public D(V value) {}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user