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:
+1
-1
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user