[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:
committed by
TeamCityServer
parent
23d7f94dca
commit
002d6723ac
-1
@@ -250,7 +250,6 @@ abstract class KotlinIrLinker(
|
||||
if (ta is IrTypeProjection) {
|
||||
val projected = ta.type
|
||||
if (projected.isUnlinked(visited)) {
|
||||
result.add(classifier)
|
||||
return true
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -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() ?: ""}",
|
||||
|
||||
Reference in New Issue
Block a user