Files
kotlin-fork/idea/testData/codeInsight/codeVision/ClassPropertyUsages.kt
T
2020-06-05 19:15:34 +02:00

13 lines
397 B
Kotlin
Vendored

// 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