194d1cfccf
Get rid of providers duplication
15 lines
233 B
Kotlin
Vendored
15 lines
233 B
Kotlin
Vendored
// FIR_IDENTICAL
|
|
// TARGET_BACKEND: JVM
|
|
// WITH_STDLIB
|
|
|
|
// MODULE: lib
|
|
|
|
// MODULE: main()()(lib)
|
|
|
|
fun nullIfEmpty(list: List<String>): List<String>? {
|
|
return if (list.isNotEmpty()) {
|
|
list
|
|
} else {
|
|
null
|
|
}
|
|
} |