Force expansion to have the same nullability as abbreviation

Note that classifier.underlyingType is always non-nullable, but
abbreviation might be nullable, so we should keep them consistent

^KT-40199 Fixed
This commit is contained in:
Dmitry Savvinov
2020-07-10 20:02:44 +07:00
parent 8890ae10d4
commit 3ef760604b
@@ -131,7 +131,7 @@ internal fun CirSimpleType.buildType(
)
return if (classifier is TypeAliasDescriptor)
classifier.underlyingType.withAbbreviation(simpleType)
classifier.underlyingType.makeNullableAsSpecified(simpleType.isMarkedNullable).withAbbreviation(simpleType)
else
simpleType
}