Fix initialization order of KClass field and class object fields

This commit is contained in:
Alexander Udalov
2014-06-09 17:52:10 +04:00
parent c17f515d06
commit 89d6f25fb6
3 changed files with 20 additions and 4 deletions
@@ -0,0 +1,11 @@
class A {
class object {
val ref: KMemberProperty<A, String> = A::foo
}
val foo: String = "OK"
}
fun box(): String {
return A.ref.get(A())
}