Fix rewrite at slice exception for callable references inside flatMap
#KT-40254 Fixed
This commit is contained in:
+2
-5
@@ -101,11 +101,8 @@ class KotlinCallCompleter(
|
||||
return candidates
|
||||
}
|
||||
|
||||
val newAtoms = mutableMapOf<KotlinResolutionCandidate, ResolvedLambdaAtom>()
|
||||
for ((candidate, atom) in lambdas.entries) {
|
||||
val newAtom = kotlinConstraintSystemCompleter.prepareLambdaAtomForFactoryPattern(atom, candidate, candidate)
|
||||
newAtoms[candidate] = newAtom
|
||||
candidate.addResolvedKtPrimitive(newAtom)
|
||||
val newAtoms = lambdas.mapValues { (candidate, atom) ->
|
||||
kotlinConstraintSystemCompleter.prepareLambdaAtomForFactoryPattern(atom, candidate, candidate)
|
||||
}
|
||||
|
||||
val diagnosticHolderForLambda = KotlinDiagnosticsHolder.SimpleHolder()
|
||||
|
||||
Reference in New Issue
Block a user