mcimadamore@1415: /* mcimadamore@1415: * @test /nodynamiccopyright/ mcimadamore@1415: * @bug 8003280 mcimadamore@1415: * @summary Add lambda tests mcimadamore@1415: * check that wildcards in the target method of a lambda conversion is handled correctly mcimadamore@1415: * @author Maurizio Cimadamore mcimadamore@1415: * @compile/fail/ref=TargetType10.out -XDrawDiagnostics TargetType10.java mcimadamore@1415: */ mcimadamore@1415: mcimadamore@1415: class TargetType10 { mcimadamore@1415: interface Function { mcimadamore@1415: R apply(A a); mcimadamore@1415: } mcimadamore@1415: mcimadamore@1415: static class Test { mcimadamore@1415: Function compose(Function g, Function f) { return null; } mcimadamore@1415: { compose(x -> "a" + x, x -> x + "b"); } mcimadamore@1415: } mcimadamore@1415: }