[NI] Resolve lambda even if there is contradiction in CS
To avoid exceptions about non-recorded lambda
This commit is contained in:
-2
@@ -181,8 +181,6 @@ class KotlinCallCompleter(
|
|||||||
// true if it is the end (happy or not)
|
// true if it is the end (happy or not)
|
||||||
// every step we fix type variable or analyzeLambda
|
// every step we fix type variable or analyzeLambda
|
||||||
private fun SimpleKotlinResolutionCandidate.oneStepToEndOrLambda(c: Context, resolutionCallbacks: KotlinResolutionCallbacks): Boolean {
|
private fun SimpleKotlinResolutionCandidate.oneStepToEndOrLambda(c: Context, resolutionCallbacks: KotlinResolutionCallbacks): Boolean {
|
||||||
if (c.hasContradiction) return true
|
|
||||||
|
|
||||||
val lambda = c.lambdaArguments.find { canWeAnalyzeIt(c, it) }
|
val lambda = c.lambdaArguments.find { canWeAnalyzeIt(c, it) }
|
||||||
if (lambda != null) {
|
if (lambda != null) {
|
||||||
analyzeLambda(c, resolutionCallbacks, lambda)
|
analyzeLambda(c, resolutionCallbacks, lambda)
|
||||||
|
|||||||
Reference in New Issue
Block a user