fun f(list: List) { list.filter { foo(it as String) } } fun foo(s: String): Boolean = true