mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 03:13:40 +07:00
new inference: isValueCompatible check during reduce (IDEA-116548)
(cherry picked from commit 3d028a86a23efeba68187c5a43d822c7aeb388f3)
This commit is contained in:
+15
@@ -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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user