Files
kotlin-fork/compiler/testData/ir/irText/expressions/arrayAugmentedAssignment2.kt
T
Dmitry Petrov 0b647ac358 Basic class members generation.
Split testData into 'classes' and 'expressions'.
2016-10-18 09:08:32 +03:00

11 lines
166 B
Kotlin
Vendored

interface IA {
operator fun get(index: String): Int
}
interface IB {
operator fun IA.set(index: String, value: Int)
}
fun IB.test(a: IA) {
a[""] += 42
}