OnJava8-Examples/generics/LimitsOfInference.java

14 lines
330 B
Java
Raw Normal View History

2015-09-07 11:44:36 -06:00
// generics/LimitsOfInference.java
2015-06-15 17:47:35 -07:00
// <20>2015 MindView LLC: see Copyright.txt
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
}
2015-09-07 11:44:36 -06:00
}
/* Output: (None) */