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

12 lines
320 B
Kotlin
Vendored

// MODE: usages
<# block [ 1 Usage] #>
interface SomeInterface {
<# block [ 2 Usages] #>
val someProperty = "initialized"
fun someFun() = "it's " + someProperty // <== (1):
}
fun main() {
val instance = object: SomeInterface {}
val someString = instance.someProperty // <== (2): call on an instance