20 lines
306 B
Kotlin
Vendored
20 lines
306 B
Kotlin
Vendored
// CHECK_BYTECODE_LISTING
|
|
// FIR_IDENTICAL
|
|
|
|
import O.d
|
|
|
|
enum class E { X }
|
|
|
|
object O {
|
|
val E.d: Delegate get() = Delegate()
|
|
}
|
|
|
|
class Delegate {
|
|
operator fun getValue(thisRef: Any?, property: Any?) =
|
|
if (thisRef == null) "OK" else "Failed"
|
|
}
|
|
|
|
val result by E.X.d
|
|
|
|
fun box(): String = result
|