// !LANGUAGE: +NewInference fun test(ls: List) { ls.takeIf(Collection<*>::isNotEmpty) }