2b986194fb
#KT-37516 Fixed
10 lines
287 B
Kotlin
Vendored
10 lines
287 B
Kotlin
Vendored
operator fun IntArray.set(index: Long, elem: Int) { this[index.toInt()] = elem }
|
|
operator fun IntArray.get(index: Long) = this[index.toInt()]
|
|
|
|
fun box(): String {
|
|
var l = IntArray(1)
|
|
l[0.toLong()] = 4
|
|
l[0.toLong()] += 6
|
|
return if (l[0.toLong()] == 10) "OK" else "Fail"
|
|
}
|