lambda: skip conditional condition during inference from return value

This commit is contained in:
Anna Kozlova
2012-09-04 21:05:03 +04:00
parent da28c0d623
commit d83b1f12c7
3 changed files with 30 additions and 1 deletions
@@ -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 -> "");
}
}