diff --git a/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/llvm/BinaryInterface.kt b/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/llvm/BinaryInterface.kt index 5a9085a5303..d7fc4cc2edf 100644 --- a/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/llvm/BinaryInterface.kt +++ b/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/llvm/BinaryInterface.kt @@ -71,6 +71,10 @@ internal tailrec fun DeclarationDescriptor.isExported(): Boolean { return constructedClass.isExported() } + if (this is PropertyAccessorDescriptor) { + return this.correspondingProperty.isExported() + } + if (this is DeclarationDescriptorWithVisibility && !this.visibility.isPublicAPI) { // If the declaration is explicitly marked as non-public, // then it must not be accessible from other modules.