mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 08:31:29 +00:00
Includes changes to decompiled text Old syntax is used in builtins and project code for now
14 lines
208 B
Kotlin
14 lines
208 B
Kotlin
import kotlin.reflect.KMemberProperty
|
|
|
|
class A {
|
|
default object {
|
|
val ref: KMemberProperty<A, String> = A::foo
|
|
}
|
|
|
|
val foo: String = "OK"
|
|
}
|
|
|
|
fun box(): String {
|
|
return A.ref.get(A())
|
|
}
|