Build fix: convert reference to lambda

Related to KT-19283 (fixes mistake in 3f005924)
This commit is contained in:
Mikhail Glukhikh
2017-12-29 14:36:10 +03:00
parent 896246a7f5
commit 0df3ffbe36
@@ -135,7 +135,7 @@ class ConvertReferenceToLambdaIntention : SelfTargetingOffsetIndependentIntentio
val expectedType = context[BindingContext.EXPECTED_EXPRESSION_TYPE, element] ?: return true
val expectedTypeDescriptor = expectedType.constructor.declarationDescriptor as? ClassDescriptor ?: return true
val expectedTypeFqName = expectedTypeDescriptor.fqNameSafe
return expectedTypeFqName.parent() == KOTLIN_REFLECT_FQ_NAME
return expectedTypeFqName.parent() != KOTLIN_REFLECT_FQ_NAME
}
companion object {