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 a87da43 commit ade838bCopy full SHA for ade838b
idea/src/org/jetbrains/kotlin/idea/refactoring/inline/KotlinInlineFunctionHandler.kt
@@ -133,8 +133,9 @@ class KotlinInlineFunctionHandler: InlineActionHandler() {
133
134
private fun KtExpression.includesCallOf(descriptor: FunctionDescriptor, context: BindingContext): Boolean {
135
val refDescriptor = getResolvedCall(context)?.resultingDescriptor
136
- return descriptor == refDescriptor ||
137
- anyDescendantOfType<KtExpression> { it !== this && it.includesCallOf(descriptor, context) }
+ return descriptor == refDescriptor || anyDescendantOfType<KtExpression> {
+ it !== this && descriptor == it.getResolvedCall(context)?.resultingDescriptor
138
+ }
139
}
140
141
0 commit comments