[FIR] Store abbreviated type in deserialized declarations as attribute
#KT-58542 Fixed
This commit is contained in:
committed by
Space Team
parent
8e72f60996
commit
5b4409e34c
+4
-2
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user