Files
kotlin-fork/compiler/testData/codegen/box/classes/kt2395.kt
T

14 lines
403 B
Kotlin
Vendored

// TODO: Enable when JS backend supports Java class library
// IGNORE_BACKEND: JS
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"
}