JVM_IR: handle property references at class level

This commit is contained in:
Georgy Bronnikov
2019-12-11 16:52:04 +03:00
parent 8d303af395
commit 92c2cfa968
8 changed files with 46 additions and 1 deletions
@@ -0,0 +1,13 @@
// 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())