mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-18 22:42:49 +07:00
628e05bda7
(cherry picked from commit 3d028a86a23efeba68187c5a43d822c7aeb388f3)
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
|
|
}
|
|
} |