Abstract PostponedResolvedAtom & buildCurrentSubstitutor

This commit is contained in:
Simon Ogorodnik
2019-04-16 21:47:19 +03:00
parent 58029830f0
commit aabc9fa10f
11 changed files with 37 additions and 27 deletions
@@ -157,7 +157,7 @@ class CoroutineInferenceSession(
private fun updateCalls(lambda: ResolvedLambdaAtom, commonSystem: NewConstraintSystemImpl) {
val nonFixedToVariablesSubstitutor = createNonFixedTypeToVariableSubstitutor()
val commonSystemSubstitutor = commonSystem.buildCurrentSubstitutor()
val commonSystemSubstitutor = commonSystem.buildCurrentSubstitutor() as NewTypeSubstitutor
val nonFixedTypesToResult = nonFixedToVariablesSubstitutor.map.mapValues { commonSystemSubstitutor.safeSubstitute(it.value) }