We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d3c3f3b commit 375698fCopy full SHA for 375698f
java/kotlin-extractor/src/main/kotlin/KotlinUsesExtractor.kt
@@ -366,9 +366,8 @@ open class KotlinUsesExtractor(
366
if (replacementClass === parentClass)
367
return f
368
return globalExtensionState.syntheticToRealFieldMap.getOrPut(f) {
369
- val result = replacementClass.declarations.findSubType<IrField> { replacementDecl ->
370
- replacementDecl.name == f.name
371
- }
+ val result = replacementClass.declarations.findSubType<IrField> { replacementDecl -> replacementDecl.name == f.name }
+ ?: replacementClass.declarations.findSubType<IrProperty> { it.backingField?.name == f.name}?.backingField
372
if (result == null) {
373
logger.warn("Failed to replace synthetic class field ${f.name}")
374
} else {
0 commit comments