6 lines
117 B
Kotlin
Vendored
6 lines
117 B
Kotlin
Vendored
// FIR_IDENTICAL
|
|
// !LANGUAGE: +NewInference
|
|
|
|
fun test(ls: List<String>) {
|
|
ls.takeIf(Collection<*>::isNotEmpty)
|
|
} |