5324b04fde
Reviewed-by: jjg
16 lines
352 B
Java
16 lines
352 B
Java
/*
|
|
* @test /nodynamiccopyright/
|
|
* @bug 4941882
|
|
* @summary incorrect inference for result of lub(int[], float[])
|
|
* @compile/fail/ref=T4941882.out -XDrawDiagnostics T4941882.java
|
|
*/
|
|
|
|
public class T4941882 {
|
|
static <T> T f(T a, T b) {
|
|
return a;
|
|
}
|
|
static Object[] main(int[] a, float[] b) {
|
|
return f(a, b);
|
|
}
|
|
}
|