[NI] Fix smartcasts computation for dot-qualifier expressions
This commit is contained in:
+2
-1
@@ -180,7 +180,8 @@ class KotlinResolutionCallbacksImpl(
|
||||
override fun createReceiverWithSmartCastInfo(resolvedAtom: ResolvedCallAtom): ReceiverValueWithSmartCastInfo? {
|
||||
val returnType = resolvedAtom.candidateDescriptor.returnType ?: return null
|
||||
val psiKotlinCall = resolvedAtom.atom.psiKotlinCall
|
||||
val expression = psiKotlinCall.psiCall.callElement.safeAs<KtExpression>() ?: return null
|
||||
val callElement = psiKotlinCall.psiCall.callElement.safeAs<KtExpression>() ?: return null
|
||||
val expression = findCommonParent(callElement, resolvedAtom.atom.psiKotlinCall.explicitReceiver)
|
||||
|
||||
return transformToReceiverWithSmartCastInfo(
|
||||
resolvedAtom.candidateDescriptor,
|
||||
|
||||
Reference in New Issue
Block a user