Files
anna 628e05bda7 new inference: isValueCompatible check during reduce (IDEA-116548)
(cherry picked from commit 3d028a86a23efeba68187c5a43d822c7aeb388f3)
2013-11-25 16:47:43 +01:00

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
}
}