536N/A/*
536N/A * @test /nodynamiccopyright/
913N/A * @bug 6939620 7020044
536N/A *
913N/A * @summary Check that 'complex' diamond can infer type that is too specific
536N/A * @author mcimadamore
536N/A * @compile/fail/ref=Neg10.out Neg10.java -XDrawDiagnostics
536N/A *
536N/A */
536N/A
536N/Aclass Neg10 {
536N/A static class Foo<X> {
536N/A Foo(X x) {}
536N/A }
536N/A
536N/A Foo<Number> fw = new Foo<>(1);
536N/A}