From d13d249640533ab30db9c990fcc58ae01169ff93 Mon Sep 17 00:00:00 2001 From: Ivan Kylchik Date: Mon, 14 Aug 2023 12:33:02 +0200 Subject: [PATCH] [Native] Drop excess cast from `isExternalObjCClass` method --- .../src/org/jetbrains/kotlin/backend/konan/ObjCInterop.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kotlin-native/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/ObjCInterop.kt b/kotlin-native/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/ObjCInterop.kt index 1dea177f2c8..5c9bfe002e8 100644 --- a/kotlin-native/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/ObjCInterop.kt +++ b/kotlin-native/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/ObjCInterop.kt @@ -62,7 +62,7 @@ fun ClassDescriptor.isExternalObjCClass(): Boolean = this.isObjCClass() && it.annotations.findAnnotation(externalObjCClassFqName) != null } fun IrClass.isExternalObjCClass(): Boolean = this.isObjCClass() && - (this as IrDeclaration).parentDeclarationsWithSelf.filterIsInstance().any { + this.parentDeclarationsWithSelf.filterIsInstance().any { it.annotations.hasAnnotation(externalObjCClassFqName) }