blob: 57f3a95b8a391001ce332e89ef6a1b734f8de3ca [file]
// IGNORE_BACKEND_FIR: JVM_IR
// WITH_RUNTIME
object ExtProvider {
operator fun Long.get(i: Int) = this
operator fun Long.set(i: Int, newValue: Long) {}
}
fun box(): String {
with (ExtProvider) {
var x = 0L
val y = x[0]++
return if (y == 0L) "OK" else "Failed, y=$y"
}
}