Don't try to infer postponed variables on lambdas without BuilderInference annotation

^KT-39618 Fixed
This commit is contained in:
Victor Petukhov
2020-07-14 17:18:13 +03:00
parent 9e737156dd
commit b0c96a61ec
10 changed files with 85 additions and 1 deletions
@@ -110,6 +110,12 @@ class LambdaKotlinCallArgumentImpl(
) : PSIFunctionKotlinCallArgument(outerCallContext, valueArgument, dataFlowInfoBeforeThisArgument, argumentName) {
override val ktFunction get() = ktLambdaExpression.functionLiteral
override val expression get() = containingBlockForLambda
override var hasBuilderInferenceAnnotation = false
set(value) {
assert(!field)
field = value
}
}
class FunctionExpressionImpl(