Files
kotlin-fork/compiler/testData/codegen/box/callableReference/property/inEnum.kt
T

13 lines
176 B
Kotlin
Vendored

import kotlin.reflect.KProperty1
class Q {
val s = "OK"
}
enum class PropEnum(val prop: KProperty1<Q, String>) {
ELEM(Q::s)
}
fun box() = PropEnum.ELEM.prop.get(Q())