| // 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 */ |