aoqi@0: /* aoqi@0: * @test /nodynamiccopyright/ aoqi@0: * @bug 8003280 aoqi@0: * @summary Add lambda tests aoqi@0: * check that wildcards in the target method of a lambda conversion is handled correctly aoqi@0: * @author Maurizio Cimadamore aoqi@0: * @compile TargetType11.java aoqi@0: */ aoqi@0: aoqi@0: class TargetType11 { aoqi@0: interface Predicate { aoqi@0: boolean apply(X c); aoqi@0: } aoqi@0: aoqi@0: static class Test { aoqi@0: public Predicate and(Predicate... first) { return null; } aoqi@0: public Predicate forPredicate(Predicate predicate) { return null; } aoqi@0: aoqi@0: Predicate c2 = forPredicate(c -> c.compareTo('e') < 0); aoqi@0: Predicate k = and(i -> i > 0, i -> i % 2 == 0); aoqi@0: } aoqi@0: }