mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-18 08:31:38 +00:00
Before this commit we considered !isOverride as a sign that function / field / accessor has no overridden symbols. However, it's false for deserialized, because isOverride is always false there. This commit fixes 68 BB tests but breaks 25 BB tests (not yet muted)
23 lines
352 B
Kotlin
Vendored
23 lines
352 B
Kotlin
Vendored
// TARGET_BACKEND: JVM
|
|
|
|
import java.util.AbstractList
|
|
|
|
class A : AbstractList<String>() {
|
|
override fun get(index: Int): String = ""
|
|
override val size: Int get() = 0
|
|
}
|
|
|
|
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.remove("")
|
|
|
|
return "OK"
|
|
}
|