mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
14 lines
200 B
Kotlin
Vendored
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())
|
|
}
|