[KLIB] Fix top level property index. Include const properties as well.

This commit is contained in:
Roman Artemev
2019-11-22 15:39:00 +03:00
committed by romanart
parent 1e4f8b2946
commit c4d993d14c
@@ -1296,7 +1296,7 @@ open class IrFileSerializer(
// Make sure that all top level properties are initialized on library's load.
file.declarations
.filterIsInstance<IrProperty>()
.filter { it.backingField?.initializer != null && !it.isConst }
.filter { it.backingField?.initializer != null }
.forEach { proto.addExplicitlyExportedToCompiler(serializeIrSymbol(it.backingField!!.symbol)) }
// TODO: Konan specific