3b841dcb98
This fixes a bunch of missing overridden symbols in IR. This is also required for fixing KT-59921 in the following commit where we need to keep all overridden symbols of intersection overrides so that we can enhance them properly. #KT-57300 Fixed #KT-57299 Fixed #KT-59921 #KT-57300 #KT-62788 #KT-64271 #KT-64382
18 lines
463 B
Kotlin
Vendored
18 lines
463 B
Kotlin
Vendored
// WITH_STDLIB
|
|
|
|
abstract class A : AbstractMutableList<Int>()
|
|
|
|
class B : A() {
|
|
override fun iterator(): MutableIterator<Int> = mutableListOf(0).iterator()
|
|
override val size = 0
|
|
override fun add(index: Int, element: Int) {}
|
|
override fun get(index: Int) = index
|
|
override fun removeAt(index: Int) = index
|
|
override fun set(index: Int, element: Int) = index
|
|
}
|
|
|
|
fun box(): String {
|
|
val b = B()
|
|
return if (b.remove(0)) "OK" else "Fail"
|
|
}
|