[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:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user