2012-09-25 11:55:34 +01:00
|
|
|
/*
|
2014-06-17 17:33:01 +01:00
|
|
|
* @test /nodynamiccopyright/
|
2012-09-25 11:55:34 +01:00
|
|
|
* @bug 7175433 6313164
|
|
|
|
* @summary Inference cleanup: add helper class to handle inference variables
|
2014-06-17 17:33:01 +01:00
|
|
|
* @compile/fail/ref=T7175433.out -XDrawDiagnostics T7175433.java
|
2012-09-25 11:55:34 +01:00
|
|
|
*/
|
|
|
|
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
class Bar {
|
|
|
|
|
|
|
|
private class Foo { }
|
|
|
|
|
2014-06-17 17:33:01 +01:00
|
|
|
<Z> List<Z> m(Object... o) { return null; }
|
|
|
|
<Z> List<Z> m(Foo... o) { return null; }
|
2012-09-25 11:55:34 +01:00
|
|
|
|
|
|
|
Foo getFoo() { return null; }
|
|
|
|
}
|
|
|
|
|
|
|
|
public class T7175433 {
|
|
|
|
|
|
|
|
public static void main(String[] args) {
|
|
|
|
Bar b = new Bar();
|
|
|
|
b.m(b.getFoo());
|
|
|
|
}
|
|
|
|
}
|