[klibs] header klibs should keep private interfaces

^KT-62213 Fixed
This commit is contained in:
Johan Bay
2023-09-29 11:33:47 +02:00
committed by Space Cloud
parent e43b634122
commit fb1d2278a0
4 changed files with 16 additions and 1 deletions
@@ -1271,6 +1271,8 @@ open class IrFileSerializer(
private fun skipIfPrivate(declaration: IrDeclaration) =
skipPrivateApi && (declaration as? IrDeclarationWithVisibility)?.visibility?.isPublicAPI != true
// Always keep private interfaces as they can be part of public type hierarchies.
&& (declaration as? IrClass)?.isInterface != true
open fun memberNeedsSerialization(member: IrDeclaration): Boolean {
val parent = member.parent