mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
This patch mutes the following test categories:
* Tests with java dependencies (System class,
java stdlib, jvm-oriented annotations etc).
* Coroutines tests.
* Reflection tests.
* Tests with an inheritance from the standard
collections.
20 lines
243 B
Kotlin
Vendored
20 lines
243 B
Kotlin
Vendored
// 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"
|
|
}
|