aoqi@0: /* aoqi@0: * @test /nodynamiccopyright/ aoqi@0: * @bug 8003280 aoqi@0: * @summary Add lambda tests aoqi@0: * check that type-checking fails because of recursive analysis of stuck expressions aoqi@0: * @compile/fail/ref=TargetType39.out -XDrawDiagnostics TargetType39.java aoqi@0: */ aoqi@0: class TargetType39 { aoqi@0: aoqi@0: interface I { } aoqi@0: aoqi@0: interface SAM { aoqi@0: R m(A a); aoqi@0: } aoqi@0: aoqi@0: void call(SAM s) { } aoqi@0: aoqi@0: void test(boolean cond, SAM ssv) { aoqi@0: call(cond ? x-> null : ssv); aoqi@0: call((String s)-> cond ? x-> null : ssv); aoqi@0: } aoqi@0: }