Files
kotlin-fork/compiler/testData/codegen/box/callableReference/property/inEnum.kt
T
2019-12-13 20:44:09 +03:00

14 lines
206 B
Kotlin
Vendored

// IGNORE_BACKEND_FIR: JVM_IR
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())