From a7d4f600b7ec11f9b52ced758a5b0e776718ec71 Mon Sep 17 00:00:00 2001 From: Valentin Kipyatkov Date: Fri, 14 Aug 2015 14:43:10 +0300 Subject: [PATCH] Added better diagnostic for EA-70945 --- .../src/org/jetbrains/kotlin/idea/completion/ExpectedInfos.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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