2010-12-06 11:51:02 +00:00
|
|
|
/*
|
2020-12-30 17:20:54 +00:00
|
|
|
* @test /nodynamiccopyright/
|
2010-12-06 11:51:02 +00:00
|
|
|
* @bug 5088429
|
|
|
|
*
|
|
|
|
* @summary varargs overloading problem
|
|
|
|
* @author mcimadamore
|
|
|
|
* @compile/fail/ref=T5088429Neg01.out -XDrawDiagnostics T5088429Neg01.java
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
class T5088429Neg01 {
|
|
|
|
interface A {}
|
|
|
|
interface B extends A {}
|
|
|
|
|
|
|
|
T5088429Neg01(A... args) {}
|
|
|
|
T5088429Neg01(A a, A... args) {}
|
|
|
|
|
|
|
|
void test(B b) {
|
|
|
|
new T5088429Neg01(b);
|
|
|
|
}
|
|
|
|
}
|