Files
kotlin/compiler/testData/codegen/box/callableReference/property/kClassInstanceIsInitializedFirst.kt
2019-11-19 11:00:09 +03:00

15 lines
230 B
Kotlin
Vendored

// IGNORE_BACKEND_FIR: JVM_IR
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())
}