Files
kotlin-fork/compiler/testData/codegen/box/callableReference/property/inEnum.kt
T
2020-11-09 16:04:43 +03:00

15 lines
252 B
Kotlin
Vendored

// DONT_TARGET_EXACT_BACKEND: WASM
// WASM_MUTE_REASON: PROPERTY_REFERENCES
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())