JVM IR: retain optional annotations as package private classes
Similarly to how it's done in the old backend (see PackageCodegenImpl.generateClassesAndObjectsInFile and AnnotationCodegen.genAnnotation)
This commit is contained in:
@@ -136,7 +136,7 @@ fun generateKLib(
|
||||
val moduleName = configuration[CommonConfigurationKeys.MODULE_NAME]!!
|
||||
|
||||
if (!configuration.klibMpp) {
|
||||
moduleFragment.acceptVoid(ExpectDeclarationRemover(psi2IrContext.symbolTable, false))
|
||||
moduleFragment.acceptVoid(ExpectDeclarationRemover(psi2IrContext.symbolTable, doRemove = false, keepOptionalAnnotations = false))
|
||||
}
|
||||
|
||||
serializeModuleIntoKlib(
|
||||
|
||||
Reference in New Issue
Block a user