new inference: isValueCompatible check during reduce (IDEA-116548)

(cherry picked from commit 3d028a86a23efeba68187c5a43d822c7aeb388f3)
This commit is contained in:
anna
2013-11-25 16:47:43 +01:00
parent a6309f6c6d
commit 628e05bda7
5 changed files with 45 additions and 1 deletions
@@ -0,0 +1,15 @@
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
}
}