fork download
  1. import java.util.List;
  2. import java.util.function.Function;
  3.  
  4. class Test {
  5. interface Mapper<T, U extends MapperProvider<U>> extends Function<T, List<U>> {}
  6.  
  7. interface MapperProvider<V> {
  8. Mapper<V, ?> provide();
  9. }
  10.  
  11. private <V extends MapperProvider<V>> void use(V c) {
  12. use2(c.provide().apply(c));
  13. }
  14.  
  15. private <W extends MapperProvider<W>> void use2(List<W> c) {
  16. }
  17. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
spoj: The program compiled successfully, but main class was not found.
      Main class should contain method: public static void main (String[] args).
stdout
Standard output is empty