FirBuilderInferenceSession: fix calculation of effectivelyEmptyCommonSystem

#KT-57873 Fixed
This commit is contained in:
Mikhail Glukhikh
2023-04-17 18:45:46 +02:00
committed by Space Team
parent 7bd5491498
commit 50f82c9094
2 changed files with 3 additions and 4 deletions
@@ -155,9 +155,8 @@ class FirBuilderInferenceSession(
val commonSystem = components.session.inferenceComponents.createConstraintSystem()
val nonFixedToVariablesSubstitutor = createNonFixedTypeToVariableSubstitutor()
integrateConstraints(commonSystem, initialStorage, nonFixedToVariablesSubstitutor, false)
var effectivelyEmptyCommonSystem = true
var effectivelyEmptyCommonSystem =
!integrateConstraints(commonSystem, initialStorage, nonFixedToVariablesSubstitutor, false)
for ((_, candidate) in commonCalls) {
val hasConstraints =
@@ -8,7 +8,7 @@ FILE: inferenceFromLambdaReturnType.kt
public final fun <S> getWithFallback(fallback: R|(ThemeKey<S>) -> S|): R|kotlin/Unit| {
}
public final fun main(): R|kotlin/Unit| {
R|/getWithFallback|<R|kotlin/String|>(<L> = getWithFallback@fun <anonymous>(it: R|ThemeKey<ERROR CLASS: Type for S is not inferred>|): R|kotlin/String| <inline=NoInline> {
R|/getWithFallback|<R|kotlin/String|>(<L> = getWithFallback@fun <anonymous>(it: R|ThemeKey<kotlin/String>|): R|kotlin/String| <inline=NoInline> {
^ String()
}
)