Better diagnostic for EA-70945
This commit is contained in:
@@ -220,7 +220,7 @@ class ExpectedInfos(
|
|||||||
private fun calculateForArgument(call: Call, callExpectedType: KotlinType, argument: ValueArgument): Collection<ExpectedInfo> {
|
private fun calculateForArgument(call: Call, callExpectedType: KotlinType, argument: ValueArgument): Collection<ExpectedInfo> {
|
||||||
val argumentIndex = call.valueArguments.indexOf(argument)
|
val argumentIndex = call.valueArguments.indexOf(argument)
|
||||||
assert(argumentIndex >= 0) {
|
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
|
// leave only arguments before the current one
|
||||||
|
|||||||
Reference in New Issue
Block a user