Skip to content

Commit 2597777

Browse files
committed
Kotlin: Fix duplicate field entry in declaration stack
1 parent 0c257a1 commit 2597777

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

java/kotlin-extractor/src/main/kotlin/KotlinFileExtractor.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -905,7 +905,6 @@ open class KotlinFileExtractor(
905905
private fun extractField(f: IrField, parentId: Label<out DbReftype>): Label<out DbField> {
906906
with("field", f) {
907907
DeclarationStackAdjuster(f).use {
908-
declarationStack.push(f)
909908
val fNameSuffix = getExtensionReceiverType(f)?.let { it.classFqName?.asString()?.replace(".", "$$") } ?: ""
910909
return extractField(useField(f), "${f.name.asString()}$fNameSuffix", f.type, parentId, tw.getLocation(f), f.visibility, f, isExternalDeclaration(f), f.isFinal)
911910
}
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +0,0 @@
1-
| Test.kt:3:1:5:2 | IrInstanceInitializerCall outside constructor |

0 commit comments

Comments
 (0)