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