blob: b4a5cd2e4f1bfc2e78d0c5f10c44b79236a5c581 [file]
// LANGUAGE: +ForbidParenthesizedLhsInAssignments
// RUN_PIPELINE_TILL: FRONTEND
// ISSUE: KT-70507
// WITH_STDLIB
object O {
operator fun inc() = this
operator fun get(i: Int) = this
operator fun set(i: Int, o: O) {}
}
fun main() {
var b = O
(b)++
(O[1])++
(O)[0]++
}
/* GENERATED_FIR_TAGS: assignment, functionDeclaration, incrementDecrementExpression, localProperty, objectDeclaration,
operator, propertyDeclaration, thisExpression */