mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-30 18:20:52 +07:00
15 lines
271 B
Java
15 lines
271 B
Java
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
|
|
}
|
|
} |