mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-17 15:54:03 +00:00
14 lines
345 B
Kotlin
Vendored
14 lines
345 B
Kotlin
Vendored
// TARGET_BACKEND: JVM
|
|
|
|
import java.util.AbstractList
|
|
|
|
class MyList(): AbstractList<String>() {
|
|
public fun getModificationCount(): Int = modCount
|
|
public override fun get(index: Int): String = ""
|
|
public override val size: Int get() = 0
|
|
}
|
|
|
|
fun box(): String {
|
|
return if (MyList().getModificationCount() == 0) "OK" else "fail"
|
|
}
|