17 lines
318 B
Kotlin
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())
|
|
}
|