Files
kotlin-fork/compiler/testData/codegen/box/increment/extOnLong.kt
T
Alexander Udalov 20e36438e2 Move some tests from boxWithStdlib/ to box/
Move those tests which do not require neither stdlib nor reflect
2016-03-09 10:25:38 +03:00

8 lines
191 B
Kotlin
Vendored

operator fun Long.get(i: Int) = this
operator fun Long.set(i: Int, newValue: Long) {}
fun box(): String {
var x = 0L
val y = x[0]++
return if (y == 0L) "OK" else "Failed, y=$y"
}