mcimadamore@1415: /*
mcimadamore@1415: * @test /nodynamiccopyright/
vromero@2000: * @bug 8003280 8016177
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
vromero@2000: * @compile 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: }