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

17 lines
242 B
Kotlin
Vendored

class C {
var property: Int = 58
get() {
return field * 2
}
set(value) {
field += 45
}
}
fun main() {
val c = C()
<expr>c</expr>.property -= 20
println(C().property)
}