[NI] Fix adapting arguments for callable references with receivers

#KT-35912 Fixed
This commit is contained in:
Mikhail Zarechenskiy
2020-01-20 13:35:56 +03:00
parent 43858e8169
commit 7bd7db839d
7 changed files with 61 additions and 1 deletions
@@ -266,7 +266,7 @@ class CallableReferencesCandidateFactory(
val mappedArgument: KotlinType?
if (substitutedParameter.isVararg) {
val (varargType, newVarargMappingState) = varargParameterTypeByExpectedParameter(
inputOutputTypes.inputTypes[index],
inputOutputTypes.inputTypes[index + unboundReceiverCount],
substitutedParameter,
varargMappingState,
builtins