Files
kotlin-fork/backend.native/tests/external/codegen/box/callableReference/property/kClassInstanceIsInitializedFirst.kt
T
2017-03-13 15:31:46 +03:00

14 lines
200 B
Kotlin

import kotlin.reflect.KProperty1
class A {
companion object {
val ref: KProperty1<A, String> = A::foo
}
val foo: String = "OK"
}
fun box(): String {
return A.ref.get(A())
}