K2: process also arguments while calculating postponed atoms
#KT-61933 Fixed
This commit is contained in:
committed by
Space Team
parent
0c287c9945
commit
14bc20652e
+1
-1
@@ -57,7 +57,7 @@ private class CalculatorForNestedCall(
|
||||
private val typesToProcess: Queue<KotlinTypeMarker> = ArrayDeque()
|
||||
|
||||
private val postponedAtoms: List<PostponedResolvedAtom> by lazy {
|
||||
candidate.postponedAtoms.filterNot { it.analyzed }
|
||||
ConstraintSystemCompleter.getOrderedNotAnalyzedPostponedArguments(candidate)
|
||||
}
|
||||
|
||||
fun computeCompletionMode(): ConstraintSystemCompletionMode = with(context) {
|
||||
|
||||
+5
@@ -407,6 +407,11 @@ class ConstraintSystemCompleter(components: BodyResolveComponents, private val c
|
||||
}
|
||||
|
||||
companion object {
|
||||
internal fun getOrderedNotAnalyzedPostponedArguments(candidate: Candidate): List<PostponedResolvedAtom> {
|
||||
val callSite = candidate.callInfo.callSite as? FirStatement ?: return emptyList()
|
||||
return getOrderedNotAnalyzedPostponedArguments(listOf(callSite))
|
||||
}
|
||||
|
||||
private fun getOrderedNotAnalyzedPostponedArguments(topLevelAtoms: List<FirStatement>): List<PostponedResolvedAtom> {
|
||||
val notAnalyzedArguments = arrayListOf<PostponedResolvedAtom>()
|
||||
for (primitive in topLevelAtoms) {
|
||||
|
||||
Reference in New Issue
Block a user