[Commonizer] Narrow CirClassifierId subtype cast in AnnotationsCommonizer
This commit is contained in:
+1
-1
@@ -39,7 +39,7 @@ class AnnotationsCommonizer : AbstractStandardCommonizer<List<CirAnnotation>, Li
|
|||||||
|
|
||||||
override fun doCommonizeWith(next: List<CirAnnotation>): Boolean {
|
override fun doCommonizeWith(next: List<CirAnnotation>): Boolean {
|
||||||
val nextDeprecatedAnnotation = next.firstOrNull { annotation ->
|
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
|
} ?: return true
|
||||||
|
|
||||||
val deprecatedAnnotationCommonizer = deprecatedAnnotationCommonizer
|
val deprecatedAnnotationCommonizer = deprecatedAnnotationCommonizer
|
||||||
|
|||||||
Reference in New Issue
Block a user