From affbefdfbeadd87c63ee59a5b761061c17a09179 Mon Sep 17 00:00:00 2001 From: Valentin Kipyatkov Date: Thu, 4 Feb 2016 21:35:26 +0300 Subject: [PATCH] Better diagnostic for EA-70945 --- .../src/org/jetbrains/kotlin/idea/core/ExpectedInfos.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/idea/idea-core/src/org/jetbrains/kotlin/idea/core/ExpectedInfos.kt b/idea/idea-core/src/org/jetbrains/kotlin/idea/core/ExpectedInfos.kt index 1866668dfc2..d9083c9d5eb 100644 --- a/idea/idea-core/src/org/jetbrains/kotlin/idea/core/ExpectedInfos.kt +++ b/idea/idea-core/src/org/jetbrains/kotlin/idea/core/ExpectedInfos.kt @@ -220,7 +220,7 @@ class ExpectedInfos( private fun calculateForArgument(call: Call, callExpectedType: KotlinType, argument: ValueArgument): Collection { val argumentIndex = call.valueArguments.indexOf(argument) assert(argumentIndex >= 0) { - "Could not find argument '$argument(${argument.asElement().text})' among arguments of call: $call" + "Could not find argument '$argument(${argument.asElement().text})' among arguments of call: $call. Call element text: '${call.callElement.text}'" } // leave only arguments before the current one