[klibs] header klibs should keep private interfaces
^KT-62213 Fixed
This commit is contained in:
+2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user