mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-11 08:31:30 +00:00
11 lines
208 B
Kotlin
Vendored
11 lines
208 B
Kotlin
Vendored
object A {
|
|
operator fun get(i: Int) = 1
|
|
operator fun set(i: Int, j: Int) {}
|
|
operator fun set(i: Int, x: Any) { throw Exception() }
|
|
}
|
|
|
|
fun box(): String {
|
|
A[0]++
|
|
A[0] += 1
|
|
return "OK"
|
|
} |