diagnose unknown conditional expression child (EA-36243)

This commit is contained in:
peter
2012-08-07 19:07:44 +02:00
parent 0ea1c307ab
commit 315a6015f2
@@ -859,7 +859,9 @@ public class ExpectedTypesProvider {
myResult = types;
}
else {
LOG.assertTrue(myExpr.equals(expr.getElseExpression()));
if (!myExpr.equals(expr.getElseExpression())) {
LOG.error(Arrays.asList(expr.getChildren()) + "; " + myExpr);
}
myResult = getExpectedTypes(expr, myForCompletion);
for (ExpectedTypeInfo info : myResult) {
((ExpectedTypeInfoImpl)info).setInsertExplicitTypeParams(true);