Files
Stanislav Erokhin 800ad5169c [kotlin FE10Binding] Enable ReplaceIsEmptyWithIfEmptyInspection
4 tests are muted because currently in HL API label target resolution is not supported

GitOrigin-RevId: 319954f6d59d64463cee2edc26198c42e1c0d7cd
2022-07-21 15:55:53 +00:00

14 lines
356 B
Kotlin

// IGNORE_FE10_BINDING_BY_FIR
// PROBLEM: none
// WITH_STDLIB
fun test(listOne: List<String>, listTwo: List<String>) {
outer@ for (i in 1..10) {
val z = if (listOne.isEmpty<caret>()) {
while (true) {
listOf(listTwo.firstOrNull() ?: continue@outer)
}
} else {
listOne
}
}
}