aoqi@0: /* aoqi@0: * @test /nodynamiccopyright/ aoqi@0: * @bug 8003280 aoqi@0: * @summary Add lambda tests aoqi@0: * case of cyclic type inference (lambda passed where inference var expected) aoqi@0: * @compile/fail/ref=TargetType26.out -XDrawDiagnostics TargetType26.java aoqi@0: */ aoqi@0: aoqi@0: class TargetType26 { aoqi@0: interface SAM { aoqi@0: void m(); aoqi@0: } aoqi@0: aoqi@0: void call(Z z) { } aoqi@0: aoqi@0: { call(() -> { }); } aoqi@0: }