Analysis API: fix call resolve inside plusAssign target

^KT-50864 fixed
This commit is contained in:
Ilya Kirillov
2022-01-19 12:25:44 +01:00
committed by TeamCityServer
parent db1dedc9fe
commit 3b943706d8
9 changed files with 75 additions and 10 deletions
@@ -1,6 +1,6 @@
KT element: KtNameReferenceExpression
FIR element: FirPropertyAccessExpressionImpl
FIR source kind: DesugaredCompoundAssignment
FIR source kind: KtRealSourceElementKind
FIR element rendered:
R|<local>/l|
@@ -0,0 +1,6 @@
// WITH_STDLIB
// LOOK_UP_FOR_ELEMENT_OF_TYPE: org.jetbrains.kotlin.psi.KtCallExpression
fun foo(x: MutableMap<Int, MutableList<String>>) {
x.getOrPut(1) { <expr>mutableListOf<String>()</expr> } += "str"
}
@@ -0,0 +1,6 @@
KT element: KtCallExpression
FIR element: FirFunctionCallImpl
FIR source kind: KtRealSourceElementKind
FIR element rendered:
R|kotlin/collections/mutableListOf|<R|kotlin/String|>()