1b553ebfaf
Added tests from testData/codegen/box directory. There are blackbox tests in other directories and they are to be added.
12 lines
218 B
Kotlin
12 lines
218 B
Kotlin
|
|
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"
|
|
}
|