mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-11 00:21:29 +00:00
22 lines
298 B
Kotlin
Vendored
22 lines
298 B
Kotlin
Vendored
// IGNORE_BACKEND_FIR: JVM_IR
|
|
// KJS_WITH_FULL_RUNTIME
|
|
// IGNORE_BACKEND: NATIVE
|
|
class A : HashSet<Long>()
|
|
|
|
fun box(): String {
|
|
val a = A()
|
|
val b = A()
|
|
|
|
a.iterator()
|
|
|
|
a.add(0L)
|
|
a.remove(0L)
|
|
|
|
a.addAll(b)
|
|
a.removeAll(b)
|
|
a.retainAll(b)
|
|
a.clear()
|
|
|
|
return "OK"
|
|
}
|