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,5 @@
// !DIAGNOSTICS_NUMBER: 1
// !DIAGNOSTICS: NONE_APPLICABLE
fun filterChars(chars: List<Char>, str: String) =
chars.filter(str::contains)