KT-4529 Lambdas are analyzed improperly in an infix call nested inside a println

#KT-4529 Fixed
This commit is contained in:
Svetlana Isakova
2014-02-11 16:15:28 +04:00
parent 2ebe8fd6a2
commit 70374ea9be
5 changed files with 47 additions and 5 deletions
@@ -1141,9 +1141,8 @@ public class BasicExpressionTypingVisitor extends ExpressionTypingVisitor {
resolutionResults = OverloadResolutionResultsImpl.nameNotFound();
}
JetExpression right = binaryExpression.getRight();
if (right != null) {
dataFlowInfo = facade.getTypeInfo(right, contextWithDataFlow).getDataFlowInfo();
if (resolutionResults.isSingleResult()) {
dataFlowInfo = resolutionResults.getResultingCall().getDataFlowInfoForArguments().getResultInfo();
}
return JetTypeInfo.create(OverloadResolutionResultsUtil.getResultingType(resolutionResults, context.contextDependency), dataFlowInfo);