From 9e04ebdacef93699b279f2d5f72c285148795510 Mon Sep 17 00:00:00 2001 From: Mikhail Zarechenskiy Date: Wed, 22 Apr 2020 03:54:33 +0300 Subject: [PATCH] Minor: fix typo --- .../calls/tower/KotlinToResolvedCallTransformer.kt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/compiler/frontend/src/org/jetbrains/kotlin/resolve/calls/tower/KotlinToResolvedCallTransformer.kt b/compiler/frontend/src/org/jetbrains/kotlin/resolve/calls/tower/KotlinToResolvedCallTransformer.kt index 338beafcbcb..cfda2f0b472 100644 --- a/compiler/frontend/src/org/jetbrains/kotlin/resolve/calls/tower/KotlinToResolvedCallTransformer.kt +++ b/compiler/frontend/src/org/jetbrains/kotlin/resolve/calls/tower/KotlinToResolvedCallTransformer.kt @@ -655,7 +655,7 @@ class NewResolvedCallImpl( private var extensionReceiver = resolvedCallAtom.extensionReceiverArgument?.receiver?.receiverValue private var dispatchReceiver = resolvedCallAtom.dispatchReceiverArgument?.receiver?.receiverValue private var smartCastDispatchReceiverType: KotlinType? = null - private var expedtedTypeForSamConvertedArgumentMap: MutableMap? = null + private var expectedTypeForSamConvertedArgumentMap: MutableMap? = null private var argumentTypeForConstantConvertedMap: MutableMap? = null @@ -803,7 +803,7 @@ class NewResolvedCallImpl( } fun getExpectedTypeForSamConvertedArgument(valueArgument: ValueArgument): UnwrappedType? = - expedtedTypeForSamConvertedArgumentMap?.get(valueArgument) + expectedTypeForSamConvertedArgumentMap?.get(valueArgument) private fun calculateExpectedTypeForConstantConvertedArgumentMap() { if (resolvedCallAtom.argumentsWithConstantConversion.isEmpty()) return @@ -818,12 +818,12 @@ class NewResolvedCallImpl( private fun calculateExpectedTypeForSamConvertedArgumentMap(substitutor: NewTypeSubstitutor?) { if (resolvedCallAtom.argumentsWithConversion.isEmpty()) return - expedtedTypeForSamConvertedArgumentMap = hashMapOf() + expectedTypeForSamConvertedArgumentMap = hashMapOf() for ((argument, description) in resolvedCallAtom.argumentsWithConversion) { val typeWithFreshVariables = resolvedCallAtom.freshVariablesSubstitutor.safeSubstitute(description.convertedTypeByCandidateParameter) val expectedType = substitutor?.safeSubstitute(typeWithFreshVariables) ?: typeWithFreshVariables - expedtedTypeForSamConvertedArgumentMap!![argument.psiCallArgument.valueArgument] = expectedType + expectedTypeForSamConvertedArgumentMap!![argument.psiCallArgument.valueArgument] = expectedType } }