12 lines
300 B
Kotlin
Vendored
12 lines
300 B
Kotlin
Vendored
// EXPECTED_REACHABLE_NODES: 1284
|
|
// PROPERTY_NOT_USED: PropertyMetadata
|
|
import kotlin.reflect.KProperty
|
|
|
|
class MyDelegate(val value: String) {
|
|
inline operator fun getValue(receiver: Any?, property: KProperty<*>): String = value
|
|
}
|
|
|
|
fun box(): String {
|
|
val x by MyDelegate("OK")
|
|
return x
|
|
} |