blob: 653c844066eee5cdd34391dc9a488ea9a5d6038b [file]
import kotlin.reflect.KProperty
class Delegate {
}
class A {
operator fun Delegate.getValue(t: Any?, p: KProperty<*>): Int = 1
val prop: Int by Delegate()
}
fun box(): String {
return if(A().prop == 1) "OK" else "fail"
}