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

15 lines
213 B
Kotlin
Vendored

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