blob: aec27345766838e4f74ef4edc025c94e00cd389c [file] [log] [blame]
import java.lang.String;
import java.util.*;
class Test4 {
interface I<K> {
List<K> foo();
}
static <T> void bar(I<T> i){}
{
bar(() -> null);
}
}
class Test5 {
interface I<K> {
void foo(K k);
}
static <T> void bar(I<T> i){}
{
bar(<error descr="Incompatible return type <null> in lambda expression">() -> null</error>);
}
}
class Test6 {
interface I<K> {
void foo();
}
static <T> void bar(I<T> i){}
{
bar(<error descr="Incompatible return type <null> in lambda expression">() -> null</error>);
bar(() -> {});
}
}
class Test7 {
interface I<K> {
void foo(String s);
}
static <T> void bar(I<T> i){}
{
bar(x -> {});
}
}