1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/test/tools/javac/Diagnostics/6722234/T6722234d.java Wed Apr 27 01:34:52 2016 +0800 1.3 @@ -0,0 +1,21 @@ 1.4 +/** 1.5 + * @test /nodynamiccopyright/ 1.6 + * @bug 6722234 1.7 + * @summary javac diagnostics need better integration with the type-system 1.8 + * @author mcimadamore 1.9 + * @compile/fail/ref=T6722234d_1.out -XDrawDiagnostics -XDdiags=where T6722234d.java 1.10 + * @compile/fail/ref=T6722234d_2.out -XDrawDiagnostics -XDdiags=where,simpleNames T6722234d.java 1.11 + */ 1.12 + 1.13 +class T6722234d { 1.14 + interface I1 {} 1.15 + interface I2 {} 1.16 + class A implements I1, I2 {} 1.17 + class B implements I1, I2 {} 1.18 + class Test { 1.19 + <Z> Z m(Z z1, Z z2) { return null; } 1.20 + void main(){ 1.21 + A a = m(new A(), new B()); 1.22 + } 1.23 + } 1.24 +}