blob: 40b2d26d442a953923a44a50977b57247b306bc1 [file] [log] [blame]
import java.util.*;
class Tmp
{
interface Callable<V> {
V run() throws Exception;
}
<T> List<T> foo(Callable<T> callable){ return null; }
void test()
{
List<String> list = foo(()->{ throw new Error(); } ); // IntelliJ error
}
}