Files
kotlin-fork/compiler/testData/codegen/box/callableReference/property/kClassInstanceIsInitializedFirst.kt
T
2021-09-27 17:07:39 +03:00

14 lines
200 B
Kotlin
Vendored

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())
}