mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-25 14:25:04 +07:00
lambda: skip conditional condition during inference from return value
This commit is contained in:
+12
@@ -37,3 +37,15 @@ class Test {
|
||||
}
|
||||
}
|
||||
|
||||
class Test1 {
|
||||
interface I<T, V> {
|
||||
V _(T t);
|
||||
}
|
||||
|
||||
static <V> void bar(I<String, V> ii, I<V, String> ik){}
|
||||
|
||||
{
|
||||
bar(s -> s.equals("") ? 0 : 1, i -> "");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user