diff --git a/native/commonizer/src/org/jetbrains/kotlin/descriptors/commonizer/core/AnnotationsCommonizer.kt b/native/commonizer/src/org/jetbrains/kotlin/descriptors/commonizer/core/AnnotationsCommonizer.kt index 3772e967696..341bb33d41b 100644 --- a/native/commonizer/src/org/jetbrains/kotlin/descriptors/commonizer/core/AnnotationsCommonizer.kt +++ b/native/commonizer/src/org/jetbrains/kotlin/descriptors/commonizer/core/AnnotationsCommonizer.kt @@ -39,7 +39,7 @@ class AnnotationsCommonizer : AbstractStandardCommonizer, Li override fun doCommonizeWith(next: List): Boolean { val nextDeprecatedAnnotation = next.firstOrNull { annotation -> - (annotation.type.classifierId as? CirClassifierId.ClassOrTypeAlias)?.classId == DEPRECATED_ANNOTATION_CID + (annotation.type.classifierId as? CirClassifierId.Class)?.classId == DEPRECATED_ANNOTATION_CID } ?: return true val deprecatedAnnotationCommonizer = deprecatedAnnotationCommonizer