mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-10 15:53:46 +00:00
12 lines
220 B
Kotlin
Vendored
12 lines
220 B
Kotlin
Vendored
// WITH_REFLECT
|
|
|
|
@Retention(AnnotationRetention.RUNTIME)
|
|
annotation class Simple(val value: String)
|
|
|
|
@property:Simple("OK")
|
|
val foo: Int = 0
|
|
|
|
fun box(): String {
|
|
return (::foo.annotations.single() as Simple).value
|
|
}
|