[FIR] Store abbreviated type in deserialized declarations as attribute

#KT-58542 Fixed
This commit is contained in:
Kirill Rakhman
2023-08-22 18:38:39 +02:00
committed by Space Team
parent 8e72f60996
commit 5b4409e34c
34 changed files with 251 additions and 89 deletions
@@ -201,8 +201,10 @@ class FirTypeDeserializer(
else -> ConeClassLikeTypeImpl(constructor, arguments, isNullable = proto.nullable, attributes)
}
// TODO: Return abbreviated types for type aliases, see KT-58542
return simpleType
val abbreviatedType = proto.abbreviatedType(typeTable)?.let { simpleType(it, attributes) }
?: return simpleType
return simpleType.withAttributes(simpleType.attributes.plus(AbbreviatedTypeAttribute(abbreviatedType)))
}
private fun createSuspendFunctionTypeForBasicCase(