blob: 4e8e8438d3cb80c65752c54a89c94645d705a775 [file]
class Test {
interface I {
boolean foo(String s);
}
{
((I)s -> s.endsWith(".java")).getClass();
I i = (<warning descr="Casting 's -> {...}' to 'I' is redundant">I</warning>)s -> s.endsWith(".java");
}
}