c2601c947f
Otherwise RHS is generated twice, causing ISE in symbol binding
16 lines
267 B
Kotlin
Vendored
16 lines
267 B
Kotlin
Vendored
operator fun Any.plusAssign(lambda: () -> Unit) {}
|
|
|
|
operator fun Any.get(index: () -> Unit): Int = 42
|
|
operator fun Any.set(index: () -> Unit, value: Int) {}
|
|
|
|
fun test1(a: Any) {
|
|
a += { }
|
|
}
|
|
|
|
fun test2(a: Any) {
|
|
a[{}] += 42
|
|
}
|
|
|
|
fun test3(a: Any) {
|
|
a[{}]++
|
|
} |