diff --git a/idea/idea-completion/src/org/jetbrains/kotlin/idea/completion/ExpectedInfos.kt b/idea/idea-completion/src/org/jetbrains/kotlin/idea/completion/ExpectedInfos.kt index f2d8985e22c..ee586980cfc 100644 --- a/idea/idea-completion/src/org/jetbrains/kotlin/idea/completion/ExpectedInfos.kt +++ b/idea/idea-completion/src/org/jetbrains/kotlin/idea/completion/ExpectedInfos.kt @@ -219,7 +219,7 @@ class ExpectedInfos( private fun calculateForArgument(call: Call, callExpectedType: JetType, argument: ValueArgument): Collection { val argumentIndex = call.getValueArguments().indexOf(argument) assert(argumentIndex >= 0) { - "Could not find argument '$argument' among arguments of call: $call" + "Could not find argument '$argument(${argument.asElement().text})' among arguments of call: $call" } val argumentName = argument.getArgumentName()?.asName val isFunctionLiteralArgument = argument is FunctionLiteralArgument