aoqi@0: /* aoqi@0: * @test /nodynamiccopyright/ aoqi@0: * @bug 6939620 7020044 aoqi@0: * aoqi@0: * @summary Check that diamond works where LHS is supertype of RHS (1-ary constructor) aoqi@0: * @author mcimadamore aoqi@0: * @compile/fail/ref=Neg07.out Neg07.java -XDrawDiagnostics aoqi@0: * aoqi@0: */ aoqi@0: aoqi@0: class Neg07 { aoqi@0: static class SuperFoo {} aoqi@0: static class Foo extends SuperFoo { aoqi@0: Foo(X x) {} aoqi@0: } aoqi@0: aoqi@0: SuperFoo sf1 = new Foo<>(""); aoqi@0: }