[KLIB] Fix SimpleTypeKey in case of type abbreviation

This commit is contained in:
Roman Artemev
2021-06-07 14:44:07 +03:00
committed by teamcityserver
parent 2f772c7a7c
commit 32bbc3b8ad
@@ -381,7 +381,8 @@ open class IrFileSerializer(
val classifier: IrClassifierSymbol?,
val hasQuestionMark: Boolean?,
val arguments: List<IrTypeArgumentKey>?,
val annotations: List<IrConstructorCall>
val annotations: List<IrConstructorCall>,
val abbreviation: IrTypeAbbreviation?
)
data class IrTypeArgumentKey(
@@ -401,7 +402,8 @@ open class IrFileSerializer(
classifier = this.classifierOrNull,
hasQuestionMark = (this as? IrSimpleType)?.hasQuestionMark,
arguments = (this as? IrSimpleType)?.arguments?.map { it.toIrTypeArgumentKey },
annotations = this.annotations
annotations = this.annotations,
abbreviation = (this as? IrSimpleType)?.abbreviation
)
private val IrTypeArgument.toIrTypeArgumentKey: IrTypeArgumentKey