Export property accessors if the property is exported
This fixes `@PublishedApi` support for properties.
This commit is contained in:
committed by
SvyatoslavScherbina
parent
197f77f8e3
commit
388aba5040
+4
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user