Guest User

Untitled

a guest
Oct 18th, 2017
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. package net.mindview.util;
  2. import java.util.*;
  3. public class New {
  4.  
  5. public static <K,V> Map<K,V> map() {
  6. return new HashMap<K,V>();
  7. }
  8. }
  9.  
  10. public class LimitsOfInference {
  11. static void f(Map<Person, List<? extends Pet>> petPeople) {}
  12.  
  13. public static void main(String[] args) {
  14. // f(New.map()); // Does not compile
  15. }
  16. }
Add Comment
Please, Sign In to add comment