blob: 14ad192c882354110b53c7ffc18018ca931b9783 [file] [log] [blame]
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
}
}