[FIR] Filter out incorrect library provides for dependencyProviders

Get rid of providers duplication
This commit is contained in:
Ivan Kochurkin
2022-10-21 22:17:52 +02:00
committed by Space Team
parent 8883de3f00
commit 194d1cfccf
12 changed files with 202 additions and 6 deletions
@@ -0,0 +1,15 @@
// 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
}
}