mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-09 16:39:37 +07:00
include enum.values() in signature hierarchy (IDEA-125077)
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
import java.util.function.Supplier;
|
||||
|
||||
class EnumValues {
|
||||
|
||||
{
|
||||
Supplier<I<ABC>> supplier = () -> new C<>(ABC::values);
|
||||
}
|
||||
|
||||
private static interface I<T> {
|
||||
T get();
|
||||
}
|
||||
|
||||
private static class C<E> implements I<E> {
|
||||
C(Supplier<E[]> supplier) {}
|
||||
|
||||
@Override
|
||||
public E get() {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
private static enum ABC {
|
||||
A, B, C
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user