提交 67671afa 编写于 作者: R Roman Artemev

[Plugin API] Fix missed call in `resolveBySignatureInModule`

上级 2c4a6fdb
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册