mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
13 lines
234 B
Kotlin
Vendored
13 lines
234 B
Kotlin
Vendored
object Map1 {
|
|
operator fun get(i: Int, j: Int) = Map2
|
|
}
|
|
|
|
object Map2 {
|
|
operator fun get(i: Int, j: Int) = 0
|
|
operator fun set(i: Int, j: Int, newValue: Int) {}
|
|
}
|
|
|
|
fun box(): String {
|
|
Map1[0, 0][0, 0]++
|
|
return "OK"
|
|
} |