/* * @test /nodynamiccopyright/ * @bug 6939620 6894753 * * @summary Switch to 'complex' diamond inference scheme * @author mcimadamore * @compile/fail/ref=Neg09.out Neg09.java -XDrawDiagnostics * */ class Neg09 { static class Foo> {} static class DoubleFoo, Y extends Number & Comparable> {} static class TripleFoo, Y extends Number & Comparable, Z> {} Foo fw = new Foo<>(); DoubleFoo dw = new DoubleFoo<>(); TripleFoo tw = new TripleFoo<>(); }