FIR: strengthen resolution success check for augmented array set call
This commit removes some false ambiguities & fixes compilation of tree-generator module with FIR
This commit is contained in:
committed by
TeamCityServer
parent
9bf2dfaa02
commit
9c2d06cf70
+5
-2
@@ -867,8 +867,11 @@ open class FirExpressionsResolveTransformer(transformer: FirBodyResolveTransform
|
||||
}
|
||||
val secondResult = augmentedArraySetCall.assignCall.transformSingle(transformer, ResolutionMode.ContextIndependent)
|
||||
|
||||
val firstSucceed = firstCalls.all { it.typeRef !is FirErrorTypeRef }
|
||||
val secondSucceed = secondCalls.all { it.typeRef !is FirErrorTypeRef }
|
||||
fun isSuccessful(functionCall: FirFunctionCall): Boolean =
|
||||
functionCall.typeRef !is FirErrorTypeRef && functionCall.calleeReference is FirResolvedNamedReference
|
||||
|
||||
val firstSucceed = firstCalls.all(::isSuccessful)
|
||||
val secondSucceed = secondCalls.all(::isSuccessful)
|
||||
|
||||
val result: FirStatement = when {
|
||||
firstSucceed && secondSucceed -> {
|
||||
|
||||
Reference in New Issue
Block a user