mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-31 19:50:55 +07:00
31 lines
857 B
Java
31 lines
857 B
Java
import java.util.*;
|
|
|
|
class ErasureTest {
|
|
public static double[] toArrayDouble(List<? extends Number> v) {
|
|
return null;
|
|
}
|
|
|
|
public static double[][] toArrayDouble(List<double[]> v) {
|
|
return null;
|
|
}
|
|
}
|
|
|
|
class ErasureTest1 {
|
|
<error descr="'toArrayDouble(List<? extends Number>)' clashes with 'toArrayDouble(List)'; both methods have same erasure">public static double[] toArrayDouble(List<? extends Number> v)</error> {
|
|
return null;
|
|
}
|
|
|
|
public static double[][] toArrayDouble(List v) {
|
|
return null;
|
|
}
|
|
}
|
|
|
|
class ErasureTest2 {
|
|
<error descr="'toArrayDouble(List<? extends Number>)' clashes with 'toArrayDouble(List<String>)'; both methods have same erasure">public static double[] toArrayDouble(List<? extends Number> v)</error> {
|
|
return null;
|
|
}
|
|
|
|
public static double[] toArrayDouble(List<String> v) {
|
|
return null;
|
|
}
|
|
} |