mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
13 lines
405 B
Kotlin
13 lines
405 B
Kotlin
// MODE: usages
|
|
|
|
/*<# block [ 1 Usage] #>*/
|
|
interface SomeClass {
|
|
/*<# block [ 3 Usages] #>*/
|
|
var someProperty = "initialized"
|
|
fun someFun() = "it's " + someProperty // <== (1): reference from expression
|
|
}
|
|
|
|
fun main() {
|
|
val instance = object: SomeClass {}
|
|
val someString = instance.someProperty // <== (2): getter call
|
|
instance.someProperty = "anotherValue" // <== (3): setter call |