Fix 'in' operator intention for Strings (KT-13974)
This commit is contained in:
committed by
Dmitry Jemerov
parent
93c2e7dfc0
commit
925c48c2f0
+2
-1
@@ -48,7 +48,8 @@ class ReplaceContainsIntention : SelfTargetingRangeIntention<KtDotQualifiedExpre
|
||||
if (!element.isReceiverExpressionWithValue()) return null
|
||||
|
||||
val functionDescriptor = getFunctionDescriptor(element) ?: return null
|
||||
if (!functionDescriptor.isOperator || !OperatorChecks.check(functionDescriptor).isSuccess) return null
|
||||
|
||||
if (!functionDescriptor.isOperator && !OperatorChecks.check(functionDescriptor).isSuccess) return null
|
||||
|
||||
return element.callExpression!!.calleeExpression!!.textRange
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user