2007-12-01 00:00:00 +00:00
|
|
|
/*
|
2014-07-17 11:14:39 -07:00
|
|
|
* @test /nodynamiccopyright/
|
2007-12-01 00:00:00 +00:00
|
|
|
* @bug 4941882
|
|
|
|
* @summary incorrect inference for result of lub(int[], float[])
|
2014-07-17 11:14:39 -07:00
|
|
|
* @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);
|
|
|
|
}
|
|
|
|
}
|