536N/A/*
536N/A * @test /nodynamiccopyright/
913N/A * @bug 6939620 7020044
536N/A *
913N/A * @summary Check that unresolved symbols doesn't cause spurious diamond diagnostics
536N/A * @author mcimadamore
536N/A * @compile/fail/ref=Neg11.out Neg11.java -XDrawDiagnostics
536N/A *
536N/A */
536N/A
536N/Aclass Neg11 {
536N/A
536N/A void test() {
536N/A class Foo<X extends Number> { }
536N/A Foo<?> f1 = new UndeclaredName<>(); //this is deliberate: aim is to test erroneous path
536N/A Foo<?> f2 = new UndeclaredName<>() {}; //this is deliberate: aim is to test erroneous path
536N/A }
536N/A}