test/tools/javac/Diagnostics/6722234/T6722234d.java

Thu, 31 Aug 2017 15:17:03 +0800

author
aoqi
date
Thu, 31 Aug 2017 15:17:03 +0800
changeset 2525
2eb010b6cb22
parent 384
ed31953ca025
parent 0
959103a6100f
permissions
-rw-r--r--

merge

aoqi@0 1 /**
aoqi@0 2 * @test /nodynamiccopyright/
aoqi@0 3 * @bug 6722234
aoqi@0 4 * @summary javac diagnostics need better integration with the type-system
aoqi@0 5 * @author mcimadamore
aoqi@0 6 * @compile/fail/ref=T6722234d_1.out -XDrawDiagnostics -XDdiags=where T6722234d.java
aoqi@0 7 * @compile/fail/ref=T6722234d_2.out -XDrawDiagnostics -XDdiags=where,simpleNames T6722234d.java
aoqi@0 8 */
aoqi@0 9
aoqi@0 10 class T6722234d {
aoqi@0 11 interface I1 {}
aoqi@0 12 interface I2 {}
aoqi@0 13 class A implements I1, I2 {}
aoqi@0 14 class B implements I1, I2 {}
aoqi@0 15 class Test {
aoqi@0 16 <Z> Z m(Z z1, Z z2) { return null; }
aoqi@0 17 void main(){
aoqi@0 18 A a = m(new A(), new B());
aoqi@0 19 }
aoqi@0 20 }
aoqi@0 21 }

mercurial