blob: ba9fe2f0f37375f6cf05c3a6f80c8d74324ee3ef [file]
class Cell(var x: Int) {
operator fun get(i: Int) = x
operator fun set(i: Int, v: Int) { x = v }
}
fun box(): String {
val c = Cell(0)
(c[0])++
if (c[0] != 1) return "Fail"
return "OK"
}