[NI] Resolve lambda even if there is contradiction in CS

To avoid exceptions about non-recorded lambda
This commit is contained in:
Mikhail Zarechenskiy
2017-07-18 14:14:02 +03:00
parent a13442b12b
commit 07a4496054
@@ -181,8 +181,6 @@ class KotlinCallCompleter(
// true if it is the end (happy or not)
// every step we fix type variable or analyzeLambda
private fun SimpleKotlinResolutionCandidate.oneStepToEndOrLambda(c: Context, resolutionCallbacks: KotlinResolutionCallbacks): Boolean {
if (c.hasContradiction) return true
val lambda = c.lambdaArguments.find { canWeAnalyzeIt(c, it) }
if (lambda != null) {
analyzeLambda(c, resolutionCallbacks, lambda)