blob: 8d9dd0e7c56f3ce070d986646362708ed9de71a7 [file] [log] [blame]
class A
operator fun A.get(vararg xs: Int) = 0
operator fun A.set(i: Int, j: Int, v: Int) {}
fun testSimpleAssignment(a: A) {
a[1, 2] = 0
}
fun testPostfixIncrement(a: A) = a[1, 2]++
fun testCompoundAssignment(a: A) {
a[1, 2] += 10
}