Kotlin: Fix duplicate field entry in declaration stack

This commit is contained in:
Tamas Vajk
2022-08-31 11:42:04 +02:00
parent 0c257a1b78
commit 25977778a2
2 changed files with 0 additions and 2 deletions

View File

@@ -905,7 +905,6 @@ open class KotlinFileExtractor(
private fun extractField(f: IrField, parentId: Label<out DbReftype>): Label<out DbField> {
with("field", f) {
DeclarationStackAdjuster(f).use {
declarationStack.push(f)
val fNameSuffix = getExtensionReceiverType(f)?.let { it.classFqName?.asString()?.replace(".", "$$") } ?: ""
return extractField(useField(f), "${f.name.asString()}$fNameSuffix", f.type, parentId, tw.getLocation(f), f.visibility, f, isExternalDeclaration(f), f.isFinal)
}