aoqi@0: /* aoqi@0: * @test /nodynamiccopyright/ aoqi@0: * @bug 8003280 aoqi@0: * @summary Add lambda tests aoqi@0: * recovery attribution step for unchecked arguments aoqi@0: * @compile/fail/ref=TargetType43.out -XDrawDiagnostics TargetType43.java aoqi@0: */ aoqi@0: class TargetType43 { aoqi@0: aoqi@0: void m(Object o) { } aoqi@0: aoqi@0: void test(Object obj) { aoqi@0: Object o = x-> { new NonExistentClass(x); return 5; }; aoqi@0: m(x-> { new NonExistentClass(x); return 5; }); aoqi@0: } aoqi@0: }