Use empty list instead of ThrowingList in callable reference resolution

Clients of the call resolution do not expect to see a throwing list in call's
arguments, and it's wrong to make each of them check against the special case
that is the resolution of callable references

Fixes EA-69901
This commit is contained in:
Alexander Udalov
2016-05-30 18:17:38 +03:00
parent e2d6e0cbab
commit d8db769823
5 changed files with 21 additions and 47 deletions
@@ -0,0 +1,9 @@
<!-- noneApplicableCallableReference1 -->
<html>
None of the following functions can be called with the arguments supplied.
<ul>
<li>CharSequence.contains(<font color=red><b>Char</b></font>, <font color=red><b>Boolean = ...</b></font>) <i>defined in</i> kotlin.text</li>
<li>CharSequence.contains(<font color=red><b>CharSequence</b></font>, <font color=red><b>Boolean = ...</b></font>) <i>defined in</i> kotlin.text</li>
<li>CharSequence.contains(<font color=red><b>Regex</b></font>) <i>defined in</i> kotlin.text</li>
</ul>
</html>