8 lines
143 B
Java
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) {}
|
|
}
|