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