Files
kotlin-fork/compiler/testData/codegen/box/collections/kt44233.kt
T
Dmitriy Novozhilov 65ea4e184a [FIR] Fix enhancement of FlexibleNullability and EnhancedNullability
- Add utilities to add new attribute to ConeAttributes
- Get rid of FlexibleNullability attribute (it can be easily inferred
    for any flexible type at any moment)
- Fix determining of EnhancedNullability attribute
2021-03-11 13:10:04 +03:00

18 lines
370 B
Kotlin
Vendored

// TARGET_BACKEND: JVM
// FULL_JDK
import java.util.concurrent.ConcurrentSkipListSet
class StringIterable : Iterable<String> {
private val strings = ConcurrentSkipListSet<String>()
override fun iterator() = strings.iterator()
}
fun box(): String {
val si = StringIterable()
return if (si.iterator().hasNext())
"Failed"
else
"OK"
}