Fix initialization order of KClass field and class object fields
This commit is contained in:
+11
@@ -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())
|
||||
}
|
||||
Reference in New Issue
Block a user