poly conditional expression type = target type (IDEA-122401)

This commit is contained in:
Anna Kozlova
2014-03-19 19:32:35 +01:00
parent 01fc6fe439
commit e6547e3991
9 changed files with 74 additions and 14 deletions
@@ -12,7 +12,7 @@ class MS {
void test(boolean cond) {
m(cond ? () -> 26 : () -> 24);
m<error descr="Ambiguous method call: both 'MS.m(GetInt)' and 'MS.m(GetInteger)' match">(cond ? () -> 26 : () -> new Integer(42))</error>;
m<error descr="Cannot resolve method 'm(?)'">(cond ? () -> 26 : () -> new Integer(42))</error>;
m(cond ? () -> new Integer(26) : () -> new Integer(42));
}
}