Files
kotlin-fork/js/js.translator/testData/callableReference/property/cases/kClassInstanceIsInitializedFirst.kt
T
2014-07-30 17:50:16 +04:00

17 lines
318 B
Kotlin

// This test was adapted from compiler/testData/codegen/boxWithStdlib/callableReference/property/.
package foo
import kotlin.reflect.KMemberProperty
class A {
class object {
val ref: KMemberProperty<A, String> = A::foo
}
val foo: String = "OK"
}
fun box(): String {
return A.ref.get(A())
}