65ea4e184a
- 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
18 lines
370 B
Kotlin
Vendored
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"
|
|
}
|