Files
kotlin-fork/analysis/analysis-api/testData/components/expressionInfoProvider/isUsedAsExpression/compoundAssignmentToProperty.kt
T
2022-10-05 15:06:52 +00:00

21 lines
368 B
Kotlin
Vendored

class C {
var property: Int = 58
get() {
return field * 2
}
set(value) {
field += 45
}
}
fun main() {
val c = C()
<expr>c.property -= 20</expr>
println(C().property)
}
// IGNORE_FE10
// FE1.0 `isUsedAsExpression` considers built-in postfix inc/dec and
// compound assignments as used, always.