Files
kotlin-fork/compiler/testData/codegen/boxWithStdlib/jdk/kt1397.kt
T

13 lines
245 B
Kotlin
Vendored

import java.util.ArrayList
class IntArrayList(): ArrayList<Int>() {
override fun get(index: Int): Int = super.get(index)
}
fun box(): String {
val a = IntArrayList()
a.add(1)
a[0]++
return if (a[0] == 2) "OK" else "fail"
}