13 lines
315 B
Kotlin
Vendored
13 lines
315 B
Kotlin
Vendored
// IGNORE_BACKEND: JVM_IR
|
|
import kotlin.reflect.KProperty
|
|
|
|
class Delegate {
|
|
operator fun provideDelegate(instance: Any?, property: KProperty<*>): Delegate = this
|
|
operator fun getValue(instance: Any?, property: KProperty<*>) = "OK"
|
|
}
|
|
|
|
val result: String by Delegate()
|
|
|
|
fun box(): String {
|
|
return result
|
|
} |