[NI] Added isSuspend for lambdas.
This commit is contained in:
committed by
Mikhail Zarechenskiy
parent
29e2a26ad6
commit
acc6e48172
+2
-1
@@ -59,6 +59,7 @@ class KotlinResolutionCallbacksImpl(
|
||||
override fun analyzeAndGetLambdaResultArguments(
|
||||
topLevelCall: KotlinCall,
|
||||
lambdaArgument: LambdaKotlinCallArgument,
|
||||
isSuspend: Boolean,
|
||||
receiverType: UnwrappedType?,
|
||||
parameters: List<UnwrappedType>,
|
||||
expectedReturnType: UnwrappedType?
|
||||
@@ -71,7 +72,7 @@ class KotlinResolutionCallbacksImpl(
|
||||
|
||||
val builtIns = outerCallContext.scope.ownerDescriptor.builtIns
|
||||
val expectedType = createFunctionType(builtIns, Annotations.EMPTY, receiverType, parameters, null,
|
||||
expectedReturnType ?: TypeUtils.NO_EXPECTED_TYPE)
|
||||
expectedReturnType ?: TypeUtils.NO_EXPECTED_TYPE, isSuspend)
|
||||
|
||||
val approximatesExpectedType = typeApproximator.approximateToSubType(expectedType, TypeApproximatorConfiguration.LocalDeclaration) ?: expectedType
|
||||
|
||||
|
||||
Reference in New Issue
Block a user