mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-17 15:50:53 +07:00
21 lines
353 B
Java
21 lines
353 B
Java
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) {}
|
|
}
|
|
} |