[NI] Type-check lambda arguments against approximated type

It's required as we analyze lambda with the approximated type too
This commit is contained in:
Mikhail Zarechenskiy
2020-03-23 01:19:47 +03:00
parent 72ce4eb5ee
commit b23aff4d0d
@@ -208,7 +208,7 @@ class ResolvedAtomCompleter(
val resultValueArgument = lambdaResult as? PSIKotlinCallArgument ?: continue
val newContext =
topLevelCallContext.replaceDataFlowInfo(resultValueArgument.dataFlowInfoAfterThisArgument)
.replaceExpectedType(returnType)
.replaceExpectedType(approximatedReturnType)
.replaceBindingTrace(topLevelTrace)
val argumentExpression = resultValueArgument.valueArgument.getArgumentExpression() ?: continue