Files
kotlin-fork/compiler/testData/ir/irText/declarations/provideDelegate/topLevel.kt
T

12 lines
294 B
Kotlin
Vendored

// FIR_IDENTICAL
class Delegate(val value: String) {
operator fun getValue(thisRef: Any?, property: Any?) = value
}
class DelegateProvider(val value: String) {
operator fun provideDelegate(thisRef: Any?, property: Any?) = Delegate(value)
}
val testTopLevel by DelegateProvider("OK")