K2: Postpone inference forks resolution until FULL completion

It helps to use expected type information when choosing the branch
even in the nested calls

^KT-43296 In Progress
This commit is contained in:
Denis.Zharkov
2022-11-01 20:11:33 +01:00
committed by Space Team
parent c958c79362
commit 10d63cc52a
8 changed files with 88 additions and 1 deletions
@@ -276,6 +276,7 @@ class NewConstraintSystemImpl(
storage.errors.addAll(otherSystem.errors)
storage.fixedTypeVariables.putAll(otherSystem.fixedTypeVariables)
storage.postponedTypeVariables.addAll(otherSystem.postponedTypeVariables)
storage.constraintsFromAllForkPoints.addAll(otherSystem.constraintsFromAllForkPoints)
}
// ResultTypeResolver.Context, ConstraintSystemBuilder