Files
kotlin-fork/compiler/testData/codegen/box/delegatedProperty/accessTopLevelDelegatedPropertyInClinit.kt
T
2018-06-28 12:26:41 +02:00

17 lines
240 B
Kotlin
Vendored

// IGNORE_BACKEND: JVM_IR
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