Fixed EA-70945

This commit is contained in:
Valentin Kipyatkov
2016-03-01 11:34:12 +03:00
parent 65662d7c99
commit 135ec78d7d
3 changed files with 17 additions and 0 deletions
@@ -188,6 +188,8 @@ class ExpectedInfos(
private fun calculateForArgument(callElement: KtCallElement, argument: ValueArgument): Collection<ExpectedInfo>? {
val call = callElement.getCall(bindingContext) ?: return null
// sometimes we get wrong call (see testEA70945) TODO: refactor resolve so that it does not happen
if (call.callElement != callElement) return null
return calculateForArgument(call, argument)
}