Added better diagnostic for EA-70945

This commit is contained in:
Valentin Kipyatkov
2015-08-14 14:43:10 +03:00
parent da16a4017e
commit a7d4f600b7
@@ -219,7 +219,7 @@ class ExpectedInfos(
private fun calculateForArgument(call: Call, callExpectedType: JetType, argument: ValueArgument): Collection<ExpectedInfo> {
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