Files
kotlin-fork/compiler/testData/codegen/box/delegatedProperty/accessTopLevelDelegatedPropertyInClinit.kt
T

16 lines
214 B
Kotlin
Vendored

import kotlin.reflect.KProperty
// KT-5612
class Delegate {
operator fun getValue(thisRef: Any?, prop: KProperty<*>): String {
return "OK"
}
}
val prop by Delegate()
val a = prop
fun box() = a