OnJava8-Examples/generics/UseList.java
2015-11-03 12:00:44 -08:00

8 lines
143 B
Java

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