Files
kotlin/compiler/testData/codegen/box/operatorConventions/nestedMaps.kt
2016-03-02 14:28:06 +03:00

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"
}