diff --git a/compiler/resolution/src/org/jetbrains/kotlin/resolve/calls/inference/model/NewConstraintSystemImpl.kt b/compiler/resolution/src/org/jetbrains/kotlin/resolve/calls/inference/model/NewConstraintSystemImpl.kt index f7009be4542..783f5581f30 100644 --- a/compiler/resolution/src/org/jetbrains/kotlin/resolve/calls/inference/model/NewConstraintSystemImpl.kt +++ b/compiler/resolution/src/org/jetbrains/kotlin/resolve/calls/inference/model/NewConstraintSystemImpl.kt @@ -165,6 +165,9 @@ class NewConstraintSystemImpl( } override fun addOtherSystem(otherSystem: ConstraintStorage) { + otherSystem.allTypeVariables.forEach { + transactionRegisterVariable(it.value) + } storage.allTypeVariables.putAll(otherSystem.allTypeVariables) for ((variable, constraints) in otherSystem.notFixedTypeVariables) { notFixedTypeVariables[variable] = MutableVariableWithConstraints(constraints.typeVariable, constraints.constraints)