Files
kotlin-fork/compiler/testData/codegen/regressions/kt2395.kt
T
2012-09-05 18:55:16 +04:00

12 lines
317 B
Kotlin

import java.util.AbstractList
class MyList(): AbstractList<String>() {
public fun getModificationCount(): Int = modCount
public override fun get(index: Int): String = ""
public override fun size(): Int = 0
}
fun box(): String {
return if (MyList().getModificationCount() == 0) "OK" else "fail"
}