Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package net.mindview.util;
- import java.util.*;
- public class New {
- public static <K,V> Map<K,V> map() {
- return new HashMap<K,V>();
- }
- }
- public class LimitsOfInference {
- static void f(Map<Person, List<? extends Pet>> petPeople) {}
- public static void main(String[] args) {
- // f(New.map()); // Does not compile
- }
- }
Add Comment
Please, Sign In to add comment