Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8d15d0a commit 4c68b58Copy full SHA for 4c68b58
1 file changed
java/kotlin-extractor/src/main/kotlin/KotlinUsesExtractor.kt
@@ -989,8 +989,11 @@ open class KotlinUsesExtractor(
989
val parentId = parent ?: useDeclarationParent(vp.parent, false)
990
val idx = vp.index
991
if (idx < 0) {
992
- // We're not extracting this and this@TYPE parameters of functions:
993
- logger.warn(Severity.ErrorSevere, "Unexpected negative index for parameter")
+ val p = vp.parent
+ if (p !is IrFunction || p.extensionReceiverParameter != vp) {
994
+ // We're not extracting this and this@TYPE parameters of functions:
995
+ logger.warn(Severity.ErrorSevere, "Unexpected negative index for parameter")
996
+ }
997
}
998
return "@\"params;{$parentId};$idx\""
999
0 commit comments