mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-12 15:53:40 +00:00
7 lines
110 B
Kotlin
Vendored
7 lines
110 B
Kotlin
Vendored
class Flower() {
|
|
|
|
var minusOne: Int = 1
|
|
get() = field + 1
|
|
set(n: Int) { field = n - 1 }
|
|
}
|