diff --git a/compiler/resolution/src/org/jetbrains/kotlin/resolve/calls/components/KotlinCallCompleter.kt b/compiler/resolution/src/org/jetbrains/kotlin/resolve/calls/components/KotlinCallCompleter.kt index 492365e6146..6af2bedfe66 100644 --- a/compiler/resolution/src/org/jetbrains/kotlin/resolve/calls/components/KotlinCallCompleter.kt +++ b/compiler/resolution/src/org/jetbrains/kotlin/resolve/calls/components/KotlinCallCompleter.kt @@ -213,6 +213,9 @@ class KotlinCallCompleter( private fun canWeAnalyzeIt(c: Context, lambda: PostponedLambdaArgument): Boolean { if (lambda.analyzed) return false + + if (c.hasContradiction) return true // to record info about lambda and avoid exceptions + lambda.receiver?.let { if (!c.canBeProper(it)) return false }