Files
kotlin/idea/testData/diagnosticMessage/noneApplicableCallableReference.kt
Alexander Udalov d8db769823 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
2016-06-07 12:42:45 +03:00

6 lines
146 B
Kotlin
Vendored

// !DIAGNOSTICS_NUMBER: 1
// !DIAGNOSTICS: NONE_APPLICABLE
fun filterChars(chars: List<Char>, str: String) =
chars.filter(str::contains)