mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 15:53:37 +00:00
10 lines
203 B
Kotlin
Vendored
10 lines
203 B
Kotlin
Vendored
@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
|
|
}
|