FIR: Add separate type constructor to stub types

This commit is contained in:
Simon Ogorodnik
2021-11-14 15:31:54 +03:00
committed by teamcity
parent 2e01377ce0
commit 196be93d42
9 changed files with 24 additions and 15 deletions
@@ -169,7 +169,7 @@ class FirBuilderInferenceSession(
val bindings = mutableMapOf<TypeConstructorMarker, ConeKotlinType>()
for ((variable, nonFixedType) in stubsForPostponedVariables) {
bindings[nonFixedType.variable.typeConstructor] = variable.defaultType
bindings[nonFixedType.constructor] = variable.defaultType
}
return ctx.typeSubstitutorByTypeConstructor(bindings)