Mark implicit receiver as captured if the function is expression
#KT-40260 Fixed #KT-42280 Fixed
This commit is contained in:
@@ -887,7 +887,9 @@ class ControlFlowInformationProvider private constructor(
|
||||
}
|
||||
|
||||
instruction.next?.let { dfs(it) }
|
||||
} else if (instruction.element is KtNameReferenceExpression) {
|
||||
} else if (instruction.element is KtNameReferenceExpression || instruction.element is KtBinaryExpression ||
|
||||
instruction.element is KtUnaryExpression
|
||||
) {
|
||||
val call = instruction.element.getResolvedCall(trace.bindingContext)
|
||||
if (call is VariableAsFunctionResolvedCall) {
|
||||
(call.variableCall.dispatchReceiver as? ExtensionReceiver)?.declarationDescriptor?.apply { markIfNeeded() }
|
||||
|
||||
Reference in New Issue
Block a user