[Plugin API] Fix missed call in resolveBySignatureInModule

This commit is contained in:
Roman Artemev
2021-02-10 16:58:49 +03:00
parent 2c4a6fdb98
commit 67671afab4

View File

@@ -681,7 +681,9 @@ abstract class KotlinIrLinker(
deserializersForModules.entries.find { it.key.name == moduleName }?.value ?: error("No module for name '$moduleName' found")
assert(signature == signature.topLevelSignature()) { "Signature '$signature' has to be top level" }
if (signature !in moduleDeserializer) error("No signature $signature in module $moduleName")
return moduleDeserializer.deserializeIrSymbol(signature, topLevelKindToSymbolKind(kind))
return moduleDeserializer.deserializeIrSymbol(signature, topLevelKindToSymbolKind(kind)).also {
deserializeAllReachableTopLevels()
}
}
// The issue here is that an expect can not trigger its actual deserialization by reachability