Files
kotlin-fork/compiler/testData/codegen/box/callableReference/property/kClassInstanceIsInitializedFirst.kt
T
2018-06-28 12:26:41 +02:00

15 lines
226 B
Kotlin
Vendored

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