Allow forward declarations bring additional IR dependencies
for modules present in metadata.
This commit is contained in:
committed by
alexander-gorshenev
parent
674580fdef
commit
a3b1d3ff62
+6
@@ -157,6 +157,12 @@ abstract class KotlinIrLinker(
|
|||||||
if (!deserializedTopLevels.contains(it)) reachableTopLevels.add(it) // Assuming forward declarations are always top levels.
|
if (!deserializedTopLevels.contains(it)) reachableTopLevels.add(it) // Assuming forward declarations are always top levels.
|
||||||
}
|
}
|
||||||
|
|
||||||
|
descriptor?.module?.let {
|
||||||
|
if (!deserializersForModules.containsKey(it) && !it.isForwardDeclarationModule) {
|
||||||
|
deserializeIrModuleHeader(it)!!
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
referenceDeserializedSymbol(proto, descriptor)
|
referenceDeserializedSymbol(proto, descriptor)
|
||||||
}
|
}
|
||||||
if (symbol.descriptor is ClassDescriptor &&
|
if (symbol.descriptor is ClassDescriptor &&
|
||||||
|
|||||||
Reference in New Issue
Block a user