OnJava8-Examples/generics/UseList.java
2015-04-29 13:56:17 -07:00

8 lines
169 B
Java

//: generics/UseList.java
// {CompileTimeError} (Will not compile)
import java.util.*;
public class UseList<W,T> {
void f(List<T> v) {}
void f(List<W> v) {}
} ///:~