blob: 376d7b9a06870b00a9b840067e119d7265a5d648 [file] [log] [blame]
class A
operator fun A.get(i: Int, a: Int = 1, b: Int = 2, c: Int = 3, d: Int = 4) = 0
operator fun A.set(i: Int, j: Int = 42, v: Int) {}
fun testSimpleAssignment(a: A) {
a[1] = 0
}
fun testPostfixIncrement(a: A) = a[1]++
fun testCompoundAssignment(a: A) {
a[1] += 10
}