2009-05-21 10:56:36 +01:00
|
|
|
/**
|
2009-08-27 11:08:27 -07:00
|
|
|
* @test /nodynamiccopyright/
|
2015-04-22 09:44:15 -07:00
|
|
|
* @bug 6722234 8078024
|
2009-05-21 10:56:36 +01:00
|
|
|
* @summary javac diagnostics need better integration with the type-system
|
|
|
|
* @author mcimadamore
|
2016-09-06 17:04:43 -07:00
|
|
|
* @compile/fail/ref=T6722234d_1.out -XDrawDiagnostics --diags:formatterOptions=where T6722234d.java
|
|
|
|
* @compile/fail/ref=T6722234d_2.out -XDrawDiagnostics --diags:formatterOptions=where,simpleNames T6722234d.java
|
2009-05-21 10:56:36 +01:00
|
|
|
*/
|
|
|
|
|
|
|
|
class T6722234d {
|
|
|
|
interface I1 {}
|
|
|
|
interface I2 {}
|
|
|
|
class A implements I1, I2 {}
|
|
|
|
class B implements I1, I2 {}
|
|
|
|
class Test {
|
|
|
|
<Z> Z m(Z z1, Z z2) { return null; }
|
|
|
|
void main(){
|
|
|
|
A a = m(new A(), new B());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|