mcimadamore@537: /* mcimadamore@537: * @test /nodynamiccopyright/ mcimadamore@537: * @bug 6939620 mcimadamore@537: * mcimadamore@537: * @summary Switch to 'complex' diamond inference scheme mcimadamore@537: * @author mcimadamore mcimadamore@537: * @compile/fail/ref=Neg11.out Neg11.java -XDrawDiagnostics mcimadamore@537: * mcimadamore@537: */ mcimadamore@537: mcimadamore@537: class Neg11 { mcimadamore@537: mcimadamore@537: void test() { mcimadamore@537: class Foo { } mcimadamore@537: Foo f1 = new UndeclaredName<>(); //this is deliberate: aim is to test erroneous path mcimadamore@537: Foo f2 = new UndeclaredName<>() {}; //this is deliberate: aim is to test erroneous path mcimadamore@537: } mcimadamore@537: }