blob: 400c4696b9ca13449625a89be6b2fd8cdfa53f5b [file] [log] [blame]
class NoLambda {
interface I<T> {
void f(T t);
}
<Z> void bar(I<Z> iz) {
}
void bazz() {
bar(null);
bar((z)-> {System.out.println();});
}
static <T> T id(T i2) {return i2;}
{
id<error descr="'id(T)' in 'NoLambda' cannot be applied to '(<lambda expression>)'">(() -> {System.out.println("hi");})</error>;
NoLambda.<Runnable>id(() -> {System.out.println("hi");});
}
}