Build fix: convert reference to lambda
Related to KT-19283 (fixes mistake in 3f005924)
This commit is contained in:
@@ -135,7 +135,7 @@ class ConvertReferenceToLambdaIntention : SelfTargetingOffsetIndependentIntentio
|
|||||||
val expectedType = context[BindingContext.EXPECTED_EXPRESSION_TYPE, element] ?: return true
|
val expectedType = context[BindingContext.EXPECTED_EXPRESSION_TYPE, element] ?: return true
|
||||||
val expectedTypeDescriptor = expectedType.constructor.declarationDescriptor as? ClassDescriptor ?: return true
|
val expectedTypeDescriptor = expectedType.constructor.declarationDescriptor as? ClassDescriptor ?: return true
|
||||||
val expectedTypeFqName = expectedTypeDescriptor.fqNameSafe
|
val expectedTypeFqName = expectedTypeDescriptor.fqNameSafe
|
||||||
return expectedTypeFqName.parent() == KOTLIN_REFLECT_FQ_NAME
|
return expectedTypeFqName.parent() != KOTLIN_REFLECT_FQ_NAME
|
||||||
}
|
}
|
||||||
|
|
||||||
companion object {
|
companion object {
|
||||||
|
|||||||
Reference in New Issue
Block a user