FIR: Allow selector of safe calls to be a FirStatement

It's necessary to allow a?.b += v be interpreted as a?.(b += v)
But currently FirAssignmentOperatorStatement is not FirQualifiedAccess

^KT-41034 In Progress
This commit is contained in:
Denis.Zharkov
2022-01-18 18:28:25 +03:00
parent c35b8342d8
commit 6f89f1ebf4
20 changed files with 52 additions and 55 deletions
@@ -155,7 +155,7 @@ internal class KtFirCallResolver(
)
// FIR does not resolve to a symbol for equality calls.
is FirEqualityOperatorCall -> toKtCallInfo(psi)
is FirSafeCallExpression -> regularQualifiedAccess.toKtCallInfo(
is FirSafeCallExpression -> selector.toKtCallInfo(
psi,
resolveCalleeExpressionOfFunctionCall,
resolveFragmentOfCall