[IR] Fix name clash between properties with the same fqn

Promote ABI version
This commit is contained in:
Roman Artemev
2019-06-19 16:19:57 +03:00
committed by romanart
parent 2995e9fcac
commit 88e92be091
3 changed files with 16 additions and 7 deletions
@@ -203,8 +203,7 @@ abstract class KotlinManglerImpl: KotlinMangler {
val parentDeclaration = (parent as? IrSimpleFunction)?.correspondingPropertySymbol?.owner ?: parent
val containingDeclarationPart = when (parentDeclaration) {
is IrDeclarationParent -> parentDeclaration.fqNameUnique.asString()
is IrProperty -> "${parentDeclaration.parent.fqNameUnique}.${parentDeclaration.name}"
is IrDeclaration -> parentDeclaration.uniqSymbolName()
else -> error("Unexpected type parameter parent")
}
return "ktypeparam:$containingDeclarationPart$name@$index"