[KLIB] Fix partially-linked mode

- don't mark super classes as unlinked if its type argument is
 - check IrCall type as well
This commit is contained in:
Roman Artemev
2021-12-06 20:42:15 +03:00
committed by TeamCityServer
parent 23d7f94dca
commit 002d6723ac
2 changed files with 1 additions and 2 deletions
@@ -250,7 +250,6 @@ abstract class KotlinIrLinker(
if (ta is IrTypeProjection) {
val projected = ta.type
if (projected.isUnlinked(visited)) {
result.add(classifier)
return true
}
}
@@ -235,7 +235,7 @@ internal class UnlinkedDeclarationsProcessor(
expression.transformChildrenVoid()
val symbol = expression.symbol
if (!symbol.isUnlinked()) return expression
if (!symbol.isUnlinked() && !expression.type.isUnlinked()) return expression
reportWarning(
"Accessing declaration contains unlinked symbol ${symbol.signature?.render() ?: ""}",