mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
diagnose unknown conditional expression child (EA-36243)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user