16 lines
352 B
Java
Raw Normal View History

2007-12-01 00:00:00 +00:00
/*
* @test /nodynamiccopyright/
2007-12-01 00:00:00 +00:00
* @bug 4941882
* @summary incorrect inference for result of lub(int[], float[])
* @compile/fail/ref=T4941882.out -XDrawDiagnostics T4941882.java
2007-12-01 00:00:00 +00:00
*/
public class T4941882 {
static <T> T f(T a, T b) {
return a;
}
static Object[] main(int[] a, float[] b) {
return f(a, b);
}
}