b02a9846d0
^KT-44233 Fixed Target versions 1.5-M1
18 lines
399 B
Kotlin
Vendored
18 lines
399 B
Kotlin
Vendored
// TARGET_BACKEND: JVM
|
|
// IGNORE_BACKEND_FIR: JVM_IR
|
|
// 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"
|
|
} |