FIR resolve: soften processBlock limitation during inference completion
This allows us to enter some lambdas unentered before
This commit is contained in:
+1
-1
@@ -217,7 +217,7 @@ class ConstraintSystemCompleter(val components: InferenceComponents) {
|
||||
primitive.processAllContainingCallCandidates(
|
||||
// TODO: remove this argument and relevant parameter
|
||||
// Currently, it's used because otherwise problem happens with a lambda in a try-block (see tryWithLambdaInside test)
|
||||
processBlocks = false
|
||||
processBlocks = primitive !is FirTryExpression
|
||||
) { candidate ->
|
||||
candidate.postponedAtoms.forEach {
|
||||
notAnalyzedArguments.addIfNotNull(it.safeAs<PostponedResolvedAtomMarker>()?.takeUnless { it.analyzed })
|
||||
|
||||
+1
-1
@@ -20,7 +20,7 @@ FILE: covariantArrayAsReceiver.kt
|
||||
lval adjusted: R|kotlin/collections/List<UsageInfo>?| = when () {
|
||||
(R|<local>/element| is R|KtParameter|) -> {
|
||||
R|<local>/usages|.R|/filterNot|<R|UsageInfo|>(<L> = filterNot@fun <implicit>.<anonymous>(): <implicit> {
|
||||
(it#.usage# is KtLightMethod)
|
||||
(R|<local>/it|.R|/UsageInfo.usage| is R|KtLightMethod|)
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user