fork(1) download
  1. import java.util.*;
  2.  
  3. class New {
  4. public static <K,V> Map<K,V> map() {
  5. return new HashMap<K,V>();
  6. }
  7. }
  8.  
  9. class LimitsOfInference {
  10. static void f(Map<Person, List<? extends Pet>> petPeople) {
  11. }
  12.  
  13. public static void main(String[] args) {
  14. f(New.map()); // Does not compile
  15. }
  16. }
  17.  
  18. class Person {
  19. }
  20.  
  21. class Pet {
  22. }
Success #stdin #stdout 0.05s 4386816KB
stdin
Standard input is empty
stdout
Standard output is empty