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.
23 lines
366 B
Kotlin
Vendored
23 lines
366 B
Kotlin
Vendored
// KT-6042 java.lang.UnsupportedOperationException with ArrayList
|
|
// IGNORE_BACKEND: NATIVE
|
|
class A : ArrayList<String>()
|
|
|
|
fun box(): String {
|
|
val a = A()
|
|
val b = A()
|
|
|
|
a.addAll(b)
|
|
a.addAll(0, b)
|
|
a.removeAll(b)
|
|
a.retainAll(b)
|
|
a.clear()
|
|
|
|
a.add("")
|
|
a.set(0, "")
|
|
a.add(0, "")
|
|
a.removeAt(0)
|
|
a.remove("")
|
|
|
|
return "OK"
|
|
}
|