FIR: Respect nullability when substituting stub types

This commit is contained in:
Simon Ogorodnik
2021-11-16 16:22:47 +03:00
committed by teamcity
parent 40a2837b4c
commit 52145e0623
6 changed files with 71 additions and 1 deletions
@@ -116,7 +116,7 @@ class FirDelegatedPropertyInferenceSession(
return object : AbstractConeSubstitutor(typeContext) {
override fun substituteType(type: ConeKotlinType): ConeKotlinType? {
if (type !is ConeStubType) return null
return bindings[type.constructor]
return bindings[type.constructor].updateNullabilityIfNeeded(type)
}
}
}