OnJava8-Examples/generics/LimitsOfInference.java
2015-04-20 15:36:01 -07:00

12 lines
275 B
Java

//: generics/LimitsOfInference.java
import typeinfo.pets.*;
import java.util.*;
public class LimitsOfInference {
static void
f(Map<Person, List<? extends Pet>> petPeople) {}
public static void main(String[] args) {
// f(New.map()); // Does not compile
}
} ///:~