Kotlin: Fix a bad label expansion

We were making a key
    @"class;ClassLabelResults(classLabel=java.io.Console, shortName=Console)\$LineReader"
This commit is contained in:
Ian Lynagh
2021-12-06 14:07:20 +00:00
parent c05aab278a
commit 40976a91ce

View File

@@ -563,7 +563,7 @@ class X {
val label = if (parent is IrClass) {
// todo: fix this. Ugly string concat to handle nested class IDs.
// todo: Can the containing class have type arguments?
"${getUnquotedClassLabel(parent, listOf())}\$$cls"
"${getUnquotedClassLabel(parent, listOf()).classLabel}\$$cls"
} else {
if (pkg.isEmpty()) cls else "$pkg.$cls"
}