mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
16 lines
266 B
Kotlin
Vendored
16 lines
266 B
Kotlin
Vendored
// ALLOW_AST_ACCESS
|
|
|
|
package test
|
|
|
|
import kotlin.reflect.KProperty
|
|
|
|
annotation class Anno
|
|
|
|
class CustomDelegate {
|
|
operator fun getValue(thisRef: Any?, prop: KProperty<*>): String = prop.name
|
|
}
|
|
|
|
class Class {
|
|
@delegate:Anno val property by CustomDelegate()
|
|
}
|